3 ms·
Also simple but very handy: [alias] amend = commit --amend --no-edit ls = ls-tree --name-only --full-name HEAD tree = log --graph --decorate --oneli
by mehrdadn 8y ago
Also simple but very handy:
[alias]
amend = commit --amend --no-edit
ls = ls-tree --name-only --full-name HEAD
tree = log --graph --decorate --oneline --all
commit-date = "!gitcommitdate() { (export GIT_COMMITTER_DATE=\"$1\" && git commit --date=\"${GIT_COMMITTER_DATE}\" \"${@:2}\"); } && gitcommitdate"
There's also a whole boatload of commands in git-extras for those interested: https://github.com/tj/git-extras/blob/master/Commands.md https://github.com/tj/git-extras/blob/master/Commands.md