Skip to main content

GIT - cheat sheet

set up new repo

(create git repo in web gui first)

git init

git add .gitignore

touch README.md

git add README.md

git remote add origin git@github.com:maxbis/examengesprekken

git push -u origin master

ssh key

add ~/.ssh/id_rsa.pub in git hub web gui

add file

git -aadd <file name>

update repo

git -aadd <file>

git commit -a -m "comment"

git push