User Tools

Site Tools


todo-git

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
todo-git [2021/11/02 21:48] dblumetodo-git [2021/11/14 00:23] – [Updating a local repo after remote's already renamed its branch] dblume
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