6 ms·
After my first bad force push (silly git push default on an unfamiliar machine) I now 'enforce' the `git push remote from_branch:to_branch` syntax on myself whe
by cjh_ 13y ago
After my first bad force push (silly git push default on an unfamiliar machine) I now 'enforce' the `git push remote from_branch:to_branch` syntax on myself when force pushing, I also have adopted the habit of always accompanying any --force with a --dry-run.
- markeganfuller 13y agoMaybe that should be the default. It does a dry run and if you're sure you add --do or something.
- cjh_ 13y agoIt could have a simple 'are you sure y/n' prompt, and you could then have a git config setting to disable this.