Git: Difference between revisions

Jump to navigation Jump to search
292 bytes added ,  6 July 2016
→‎Useful git aliases: update aliases
dump from oldwiki
→‎Useful git aliases: update aliases
Line 124: Line 124:
         br = branch
         br = branch
         df = difftool
         df = difftool
         hist = log --pretty=format:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short
         hist = log --pretty=tformat:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(bold blue)[%an]\" --graph --date=short
         histall = log --pretty=format:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short --all
hist2 = log --graph --abbrev-commit --decorate --date=relative --format=tformat:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold blue)\" --graph --date=short
         hist10 = !git log --pretty=format:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short | head -n 10
         histall = log --pretty=tformat:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short --all
         hist10all = !git log --pretty=format:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short --all | head -n 10
         hist10 = !git log --pretty=tformat:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short | head -n 10
         hist10all = !git log --pretty=tformat:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short --all | head -n 10
        listnames = diff-tree --no-commit-id --name-status -r
         type = cat-file -t
         type = cat-file -t
         dump = cat-file -p
         dump = cat-file -p
         ignore = update-index --assume-unchanged
         ignore = update-index --assume-unchanged
         track = update-index --no-assume-unchanged
         track = update-index --no-assume-unchanged
         listignored = !git ls-files -v | grep -s ^'h ' | cut -b 1-2 --complement
         ignorelist = !git ls-files -v | grep -s ^'h ' | cut -b 1-2 --complement[diff]
[diff]
         tool = vimdiff
         tool = vimdiff
[difftool]
[difftool]

Navigation menu