Merge branch 'main' of git.72.lv:vikturix/lostInSpace

This commit is contained in:
Vikturix 2023-03-19 19:14:43 +00:00
commit abf7bb257d
2 changed files with 45 additions and 0 deletions

28
README.md Normal file
View File

@ -0,0 +1,28 @@
## 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.
A cosmetic change to show the workings of git to Richard.

View File

@ -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.