1
0
forked from extern/nix-config

Add git branch -m to help/git.md

This commit is contained in:
Donovan Glover 2018-02-24 23:30:44 -05:00
parent eabf6fb6e7
commit f36354333a
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D

View File

@ -49,6 +49,7 @@ Also note that `git clone` makes a remote name of `origin` by default. This is w
- Always create a new branch when submitting pull requests. This allows you to create multiple pull requests for different issues, prevent conflicts between your master branch and upstream, as well as some other things.
- Delete a branch when you're done with it: `git branch -d <branch>`
- Push your changes to a different branch (i.e. your new branch): `git push origin <branch>` **OR** `gp origin <branch>`
- Rename the current branch: `git branch -m <new_name>`
### Updating a Forked Repository