git config --global user.name "User"
git config --global user.email "user@email.com.br"
git config --list
git config --global --list
git init
git status
git add .
git add -A
git add --all
git commit -m "message"
1 - Working Directory
2 - Staging area (staged)
3 - Commited
git diff
git diff --cached
git diff --staged
git log
git log --oneline
git checkout "namefile"
git reset
git reset --hard (delete all files)
git clean -f
git clone http://git..
git clone source/ another-folder/
git pull
git push
git branch
git branch develop (create)
git checkout develop
git checkout -b TASK-1 (create)
git push --set-upstream origin develop
git push -u origin develop (shortcut up)
git branch -d develop (delete local)
git push --delete origin develop (remote)
git branch -m develop1 (rename)
git branch -m develop develop1 (rename not checked)
git mergetool
git stash
git stash list
git stash save "stash test"
git stash apply (get first stack)
git stash pop
git stash drop stash@[position]
git reset --hard HEAD~1 (come back 1 commit) Delete the most recent commit and remove changes:
git reset --soft HEAD~1 (come back 1 commit, go stage) Delete the most recent commit, without destroying the work you've done:
git reset --hard HEAD^
git push -f
git commit --amend
git pull (git fetch + git merge)
git fetch (after)
git fetch --prune
git merge
git config --global alias.s status
git config --global --unset alias.s
git remote -v
git branch | grep R2
git tag | grep 1
https://www.sourcetreeapp.com/
git clean -f -d
git config --global credential.helper cache
- .git-credentials --> https://user:pass-or-token@github.com