...that I can never remember
Branches
Command | Summary | Example usage | Tips |
---|---|---|---|
git push origin <branchname> | Publish a locally created branch to the origin remote. | Enable other developers to check out your branch. | |
git push origin :<branchname> | Delete a branch on the origin remote. | This command only works if <branchname> is also a local branch. | |
git branch -d <branchname> | Delete a branch locally. | Always remember to:
|