andrzejsydor / config

Eclipse Public License 1.0
1 stars 0 forks source link

add git branch name shortcut #13

Open andrzejsydor opened 6 years ago

andrzejsydor commented 6 years ago

git rev-parse --abbrev-ref HEAD

.gitconfig .zshrc

https://stackoverflow.com/questions/6245570/how-to-get-the-current-branch-name-in-git

andrzejsydor commented 6 years ago

branch-current = rev-parse --abbrev-ref HEAD

andrzejsydor commented 6 years ago

alias gbc='git rev-parse --abbrev-ref HEAD'