Git commands ¶
-
https://services.github.com/on-demand/downloads/fr/github-git-cheat-sheet/
-
https://www.atlassian.com/git/tutorials/atlassian-git-cheatsheet
- “..” command, Double Dot Notation
- git add
- git bisect
- git branch
- git cherry-pick
- git clone
- git commit
- git config
- git diff
- git difftool
- git checkout (switch branches or restore working tree files)
- git fetch
- git filter-repo (git 2.24.0+)
- git gc
- git help
- git init
-
git log
- .gitconfig
- How to see your commit history in Git
- How to see log stats in Git
- How to show the commit log as a graph in Git
- git log –follow [fichier]
- git log –author=[auteur]
- git dlog (alias)
- git dlog -p
- git shortlog
- git shortlog -sn –all –no-merges
- git log –graph –oneline –decorate
- git log –pretty=format:”%cn committed %h on %cd”
- git log –graph –pretty=format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset’ –abbrev-commit
- git log –graph –all –decorate –stat –date=iso
- git ls-files
- git merge
- git mv
- Git pull
- git push
- git rebase
- git reflog
- git remote
- git reset
- git restore EXPERIMENTAL (since git 2.23.0 (2019-08-16))
- git revert
- git rm
- git show (Show various types of objects)
- git status
- git stash
- git switch EXPERIMENTAL (since git 2.23 (2019-08-16))
- git tag
- git whatchanged
- git worktree