Git CheatSheet

3 views
Software

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 + git stash drop

bd5e475