e25e481145579240e6042012078558cdbb6bfc7e
coding/git.md
| ... | ... | @@ -26,6 +26,13 @@ git fetch |
| 26 | 26 | git reset origin/<branch> --hard |
| 27 | 27 | ``` |
| 28 | 28 | |
| 29 | +renaming branch and updating remote |
|
| 30 | +``` |
|
| 31 | +git branch -m old-name new-name |
|
| 32 | +git push origin --set-upstream new-name |
|
| 33 | +git push origin :old-name |
|
| 34 | +``` |
|
| 35 | + |
|
| 29 | 36 | set username for [single repo][] |
| 30 | 37 | ``` |
| 31 | 38 | git config user.username 'name' |