Skip to content

guilhermebpnr/git-cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Git

Yet another (personal) Git Cheat Sheet.

git help

https://about.gitlab.com/2016/12/08/git-tips-and-tricks/

git init

git clone

git add

git commit

git push

git pull

git branch, git checkout, git checkout -b

git cherry-pick <commit-hash>

https://stackoverflow.com/questions/9339429/what-does-cherry-picking-a-commit-with-git-mean

git commit --amend [-m "New commit message"]

https://stackoverflow.com/questions/179123/how-to-modify-existing-unpushed-commits

git merge

git rebase

git merge --squash

git rebase -i <after-this-commit>, git reset --soft HEAD~3 && git commit

https://stackoverflow.com/questions/5189560/squash-my-last-x-commits-together-using-git

git bisect

https://stackoverflow.com/questions/4713088/how-to-use-git-bisect#4714297

git log

git reflog

http://effectif.com/git/recovering-lost-git-commits

git reset

git clean

https://stackoverflow.com/questions/3119850/is-there-a-way-to-clean-up-git

About

Yet another (personal) Git cheat sheet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published