Git CheatSheet

Change origin from HTTPS to SSH

git remote rm origin
git remote add origin git@git:XYZ.git
git pull
git branch —set-upstream-to=origin/master master
repeat for other branches like "origin/dev dev" if applicable

Good to know

git stash pop == git stash apply; and git stash drop