git-extras
git-extras copied to clipboard
git sync reset --hard?
My definition of sync is
- Pull latest commits
- Push latest commits
Why does it also do a hard reset?
To ensure all the states are synced (not just the commits).
So that spawns 3 more questions:
- Why does the "soft" reset as well? Shouldn't it only do a fetch, and not a reset?
- Why do neither do a push? A sync would seem to indicate that we send our commits up as well as pull down?
- why not stash any current changes as to avoid a merge conflict?
The script is written 5 years ago. I know its purpose, but I can't recall why the author chose A but not B.