Git Cheat Sheet
git status
git diff
git log
git fetch
git pull
git pull rebase
git push
git branch
git branch -av
git branch my-branch
git checkout branch-name
git branch -d my-branch
git checkout branch-b
git merge branch-a
git tag my-tag
git add [file]
git commit -m "commit message"
git reset [file]
git reset [commit]
git reset --hard [commit]
git stash list
git stash
git stash save "stash-name"
git stash show stash@{n} -p
git stash apply stash@{n}
git stash drop stash@{n}
git stash pop
git checkout develop
git pull --rebase origin develop
git checkout -b feature/nomfeature
git push origin feature/nomfeature
git checkout develop
git merge --no-ff feature/nomefeature
git branch -d feature/nomefeature
git push origin develop
git push origin :feature/nomefeature (if not pushed)
git checkout master
git pull --rebase origin master
git checkout -b hotfix/hotfix-version
git checkout master
git merge --no-ff hotfix/ hotfix-version
git tag -a hotfix-version
git checkout develop
git merge --no-ff hotfix/ hotfix-version
git branch -d hotfix/ hotfix-version
git push origin master
git push origin develop
git push origin --tags
git push origin :hotfix/ hotfix-version (if not pushed)
git checkout develop
git pull --rebase origin develop
git checkout -b release/ release-version
git push origin feature/ release-version
git checkout master
git merge --no-ff release/ release-version
git tag -a release-version
git checkout develop
git merge --no-ff release/ release-version
git branch -d release/ release-version
git push origin master
git push origin develop
git push origin --tags
git push origin :release/ release-version (if not pushed)