Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [alias]
- ch = checkout
- br = branch
- st = status
- #############
- brm = branch --merged
- brnm = branch --no-merged
- #############
- lsf = "!git ls-files | grep -i"
- ls = ls-files
- ### lsac= ls all-files in commit <branch>|<commit> (guid)
- ### ls-tree - List the contents of a tree object; includes UUID info
- ### --name-only
- lst = ls-tree --name-only -r
- #### lsc = list <in commit> (show files involved in that commit)
- #### functionally same as :
- ###### lfc = diff-tree --no-commit-id --name-only -r
- ########### alternate command:
- ###### git show --pretty="format:" --name-only <branch>
- lsc = "!f() { git diff-tree --no-commit-id --name-only -r $1;}; f"
- ############# whois takes a name or email address of author
- whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
- ############# takes a commit #
- whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
- #############
- lol = log --oneline
- oneline = log --oneline
- lognames = log --name-only
- logstatus = log --name-status
- graph = log --graph --oneline --decorate --all #log graph
- tree = log --graph --oneline --all --pretty=format:'%C(yellow)%h%Creset -%Cred%d%Creset %s %Cgreen%cr%Creset %Cblue%an%Creset %gn'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement