Re:Jenkin developers accidentally do "git push --force" to o...
by aferreira on Monday November 11, 2013 @06:10PM
(#6714742)
Always always _always_ use git push <remote> <branch>. Always. Did I mention always? :)
[ Parent
| on HN ]
Re:Jenkin developers accidentally do "git push --force" to o...
by cjh_ on Monday November 11, 2013 @09:05PM
(#6715410)
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.
Re:Jenkin developers accidentally do "git push --force" to o...
by markeganfuller on Tuesday November 12, 2013 @04:18AM
(#6716679)
Maybe that should be the default.
It does a dry run and if you're sure you add --do or something.