README created (lazily)
This commit is contained in:
parent
97fc15429f
commit
e241ee8c8d
25
README.md
Normal file
25
README.md
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
## Useful Aliases
|
||||||
|
|
||||||
|
Just copy the `[alias]` line and subsequent lines into your `.gitconfig` file (in your home directory).
|
||||||
|
|
||||||
|
```
|
||||||
|
[alias]
|
||||||
|
logline = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
|
||||||
|
lg1 = log --graph --abbrev-commit --decorate --format=format:'%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 yellow)%d%C(reset)' --all
|
||||||
|
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
|
||||||
|
lg = !"git lg1"
|
||||||
|
ln = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit
|
||||||
|
ll = log --oneline
|
||||||
|
lg3 = log --format='%Cred%h%Creset %s %Cgreen(%cr) %C(blue)<%an>%Creset%C(yellow)%d%Creset' --no-merges
|
||||||
|
```
|
||||||
|
|
||||||
|
## Core Pager
|
||||||
|
|
||||||
|
It can be quite useful to set the pager to be `less -FRSX` - it works well across bash, zsh and also git shell.
|
||||||
|
|
||||||
|
```
|
||||||
|
[core]
|
||||||
|
pager = less -FRSX
|
||||||
|
```
|
||||||
|
|
||||||
|
For now we will utilise this as README as well, but with time it probably will need to stay in handy-notes as the readme will get too busy. Probably a good idea to put readme in each project subdirectory as well; this is what gets displayed to users browsing via the web interface.
|
@ -1,3 +1,8 @@
|
|||||||
|
## Useful Aliases
|
||||||
|
|
||||||
|
Just copy the `[alias]` line and subsequent lines into your `.gitconfig` file (in your home directory).
|
||||||
|
|
||||||
|
```
|
||||||
[alias]
|
[alias]
|
||||||
logline = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
|
logline = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
|
||||||
lg1 = log --graph --abbrev-commit --decorate --format=format:'%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 yellow)%d%C(reset)' --all
|
lg1 = log --graph --abbrev-commit --decorate --format=format:'%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 yellow)%d%C(reset)' --all
|
||||||
@ -6,3 +11,15 @@
|
|||||||
ln = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit
|
ln = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit
|
||||||
ll = log --oneline
|
ll = log --oneline
|
||||||
lg3 = log --format='%Cred%h%Creset %s %Cgreen(%cr) %C(blue)<%an>%Creset%C(yellow)%d%Creset' --no-merges
|
lg3 = log --format='%Cred%h%Creset %s %Cgreen(%cr) %C(blue)<%an>%Creset%C(yellow)%d%Creset' --no-merges
|
||||||
|
```
|
||||||
|
|
||||||
|
## Core Pager
|
||||||
|
|
||||||
|
It can be quite useful to set the pager to be `less -FRSX` - it works well across bash, zsh and also git shell.
|
||||||
|
|
||||||
|
```
|
||||||
|
[core]
|
||||||
|
pager = less -FRSX
|
||||||
|
```
|
||||||
|
|
||||||
|
For now we will utilise this as README as well, but with time it probably will need to stay in handy-notes as the readme will get too busy. Probably a good idea to put readme in each project subdirectory as well; this is what gets displayed to users browsing via the web interface.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user