### git push --force 很坑 不到万不得已,千万别用。 很可能把别人的 commit 丢掉 https://news.ycombinator.com/item?id=6713742 https://blog.sensible.io/2012/10/09/git-to-force-put-or-not-to-force-push.html https://developer.atlassian.com/blog/2015/04/force-with-lease/ ### git push 中的 trick ``` git config --global push.default simple ``` https://git-scm.com/docs/git-config#git-config-pushdefault https://rakhesh.com/coding/git-push-default/ ### workflow 比较 https://www.codingblocks.net/podcast/comparing-git-workflows/ https://www.atlassian.com/git/tutorials/comparing-workflows
git push --force 很坑
不到万不得已,千万别用。
很可能把别人的 commit 丢掉
https://news.ycombinator.com/item?id=6713742
https://blog.sensible.io/2012/10/09/git-to-force-put-or-not-to-force-push.html
https://developer.atlassian.com/blog/2015/04/force-with-lease/
git push 中的 trick
https://git-scm.com/docs/git-config#git-config-pushdefault
https://rakhesh.com/coding/git-push-default/
workflow 比较
https://www.codingblocks.net/podcast/comparing-git-workflows/
https://www.atlassian.com/git/tutorials/comparing-workflows