Browse Source

[command] Make git alias git graph

pull/1/head
Muthu Kumar 6 years ago
parent
commit
195f6d54b0
  1. 2
      scripts/README.md
  2. 2
      scripts/mkr.sh

2
scripts/README.md

@ -36,7 +36,7 @@ mkr-update
- `mkd </path/to/dir>` : Creates dir at given path and changes cwd to it
- `rmd [dir]` : Removes current directory and moves up OR removes directory by given name
- git
- `git-graph` : Opens a pretty commit log graph
- `git graph` : Opens a pretty commit log graph
- `commit <commit-message>` : Adds all untracked files and commits them
- `push <commit-message> [remote branch]` : Adds all untracked files, commits and pushes them
- `dotgit [commands...]` : Requires a `~/.dotfiles` bare repo to exist

2
scripts/mkr.sh

@ -55,7 +55,7 @@ rmd () {
## git graph
## Usage: git graph
alias git-graph='git log --graph --date-order --pretty=format:"%C(bold yellow)%h%C(auto)%d %C(cyan)%an%C(bold white) %s %C(auto)%C(green)(%ar)%C(reset)"'
git config --global alias.graph 'log --graph --date-order --pretty=format:"%C(bold yellow)%h%C(auto)%d %C(cyan)%an%C(bold white) %s %C(auto)%C(green)(%ar)%C(reset)"'
## lower-level `dot-git-cmd`, to be used for `dotgit` command
alias dot-git-cmd="git --git-dir=$HOME/.dotfiles --work-tree=$HOME"

Loading…
Cancel
Save