3 ms·
Not the mention inconsistency in commands, examples of how to remove something: git remote rm foobar But for branches git branch -d my_branch But for re
by jfroma 10y ago
Not the mention inconsistency in commands, examples of how to remove something:
git remote rm foobar
But for branches
git branch -d my_branch
But for remote branches is :
git push origin :my_branch
- DougBTX 10y agoThe last one can also be: git push origin --delete my_branch so, rm vs -d vs --delete
- palunon 10y agoOr git push origin -d my_branch, so rm vs -d
- grogenaut 10y agogit push origin HEAD:mainline git rebase origin/mainline git checkout -b origin/mainline origin/mainline # kappa, caused me hours of pain Some day we'll hopefully get a re-write of the command line, and replace some of this stuff that is obviously just cruft... and cruft that you could see coming a long time ago (been using it since rails core switched to git). I remember a conversation int the mailing list where people were talking about re-aligning this stuff but they were also worried about adoption and consistency so they left it. Maybe with git version 2.0 they said. This was like 2009.
- lawpoop 10y agoshell command aliases for now :P