Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
icedchai
on Jan 18, 2022
|
parent
|
context
|
favorite
| on:
Learn the workings of Git, not just the commands (...
I create backup branches all the time. Though I rarely have to use them, they have saved my butt a couple times!
DarylZero
on Jan 18, 2022
[–]
You don't need to create backup branches ahead of time with git, because the reflog saves every branch before every operation. You can create your backup branch from the reflog _after_ you discover you need it!
icedchai
on Jan 18, 2022
|
parent
[–]
I did use the reflog once, when I forgot to make a backup branch. It's not one of the commands I use regularly though.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: