-
Notifications
You must be signed in to change notification settings - Fork 3
Git
Vlad Volkov edited this page Jan 16, 2021
·
4 revisions
Use case: this morning you've discovered that remote repo url was changed and you want to sync up with it
git remote -v
git remote set-url origin https://github.com/bn-digital/<NEW-REPO-NAME>.git
Use case: this morning you've discovered that remote branch was renamed and you want to sync up with it
git branch -m <OLD-BRANCH-NAME> <NEW-BRANCH-NAME>
git fetch origin
git branch -u origin/<NEW-BRANCH-NAME> <NEW-BRANCH-NAME>