git bash
git cheatsheet
config
1
2
git config --global user.name "User"
git config --global user.email user@email.com
initial git dir
1
git init
add all to stash
1
git add .
commit
1
git commit -m "messages here"
status
1
git status
pull
check download changed from repo
1 git pull
push to repo
1
git push origin master
clone
1
git clone <link-repo> <dir-name>
clone by tag
1
git clone -b <nama-tag> <link-repo> <dir-name>
switch branch
1
git switch -c <nama-branch>