View on GitHub

blog

Articles of interest, ramblings of a developer

Here are the Git aliases I use…

[alias]
    roh = "!git reset origin/$(git branch-name) --hard"
    ro = "!git rebase origin/$(git branch-name)"
    branch-name = "!git rev-parse --abbrev-ref HEAD"
    new-commits = "!git log origin/$(git branch-name).."
    old-commits = "!git log ..origin/$(git branch-name)"
    cp = cherry-pick
    rc = rebase --continue
    k-new-commits = "!gitk origin/$(git branch-name).. &"
    romi = rebase origin/master -i
    rom = rebase origin/master
    check = !"sh $HOME/git-check.sh"
[core]
	editor = \"C:\\\\Program Files (x86)\\\\Notepad++\\\\notepad++.exe\" -multiInst -notabbar -nosession -noPlugin
[push]
	default = current

Aliases explained

Internal-alias functions

See also