4,461
edits
→Making a pull request: add section blank for accepting and merging a pull request |
add rename a branch |
||
Line 222: | Line 222: | ||
== Merge a branch == | == Merge a branch == | ||
<source lang=" | <source lang="console"> | ||
$ git checkout autonotif | $ git checkout autonotif | ||
Switched to branch 'autonotif' | Switched to branch 'autonotif' | ||
Line 234: | Line 234: | ||
Merges <branchname> onto autonotif branch | Merges <branchname> onto autonotif branch | ||
== Rename a branch == | |||
and update in the remote as well | |||
<source lang="console"> | |||
$ git checkout <old_name> | |||
$ git branch -m <new_name> | |||
$ git push origin --delete <old_name> | |||
$ git push origin -u <new_name> | |||
</source> | |||
== Delete a branch == | == Delete a branch == |