grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit ede37fa4e1e1d3a03541477c4ff3d4b026537709
parent f4792e94e54afc0e97a2f2594127908111164956
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri,  3 Apr 2020 12:41:59 +0100

renaming branch and updating remote

Diffstat:
Mcoding/git.md | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/coding/git.md b/coding/git.md @@ -26,6 +26,13 @@ git fetch git reset origin/<branch> --hard ``` +renaming branch and updating remote +``` +git branch -m old-name new-name +git push origin --set-upstream new-name +git push origin :old-name +``` + set username for [single repo][] ``` git config user.username 'name'