User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
todo-git [2021/11/02 21:48]
todo-git [2021/11/14 00:23]
dblume [Updating a local repo after remote's already renamed its branch]
Line 147: Line 147:
 <code bash> <code bash>
 git branch -m master main git branch -m master main
-git fetch origin+git fetch --all --prune
 git branch -u origin/main main git branch -u origin/main main
 git remote set-head origin -a git remote set-head origin -a