DEV Community

Discussion on: Delete Your Master

 
jessekphillips profile image
Jesse Phillips • Edited

Not checking my commands but what is wrong with

git fetch & git switch --detach origin/master
git branch --merged
git branch -r --merged
git rebase origin/master 
git merge origin/master
git switch -c 
git reset --hard HEAD
git checkout origin/master -- ./foo
git diff origin/master...HEAD -- ./foo
Enter fullscreen mode Exit fullscreen mode