I don’t know if it’s the crazy syntax, but for the life of me, I always need to come back to this cheat sheet, maybe you will too:
GIT CHEATSHEET
pull remote branch.
git fetch origin <branch-name>
push local branch to remote (with tracking)
git push origin -u <new-branch>
delete remote branch (who the fuck thought of this syntax?)
git push origin :<branch-name> #deletes remotely git branch -d <branch-name> #deletes locally
clean untracked files (not folders)
git clean -f -x
synchronize with original repository on my forked repo
git checkout <branch I'm working on> git pull <url of remote original repo> <remote branch, usually their master>
(it’s probably better to add the remote repo as another origin.)