Wednesday, May 08, 2019

.gitconfig


[alias]
    lol = log --graph --decorate --pretty=oneline --abbrev-commit
    lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
    pushall = !git remote | xargs -L1 git push --all
    pushalltags = !git remote | xargs -L1 git push --tags
    fetchall = !git fetch --all --tags
    squash-all = "!f(){ git reset $(git commit-tree HEAD^{tree} \"${1:-}\");};f"
[color]
    branch = auto
    diff = auto
    interactive = auto
    status = auto
    ui = true
[user]
    name = Daniel Abrantes
    email = daniel.abrantes@gmail.com
[diff]
    tool = meld
[merge]
    tool = meld
[format]
    pretty = oneline
[push]
    default = simple

Git get all remote branches

git branch -r \ | grep -v '\->' \ | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | while read remote; do \ git branc...