Skip to content
config 2.71 KiB
Newer Older
[apply]
    whitespace = fix
nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed
[alias]
    amend = commit --amend
    autorebase = -c 'core.editor=true' rebase -i --autosquash --autostash
    bull = submodule update --remote --init
nimrod's avatar
nimrod committed
    cdif = diff --cached --color-words
    cdiff = diff --cached
    cleaan = clean -dX
    cleaaan = clean -dx
nimrod's avatar
nimrod committed
    default-branch = name-rev --name-only origin/HEAD
nimrod's avatar
nimrod committed
    dif = diff --color-words --ignore-all-space
    empty-commit = commit --allow-empty
	exec = "!${SHELL:-/bin/sh} -ic "
nimrod's avatar
nimrod committed
    ff = merge --no-edit --ff-only origin/HEAD
nimrod's avatar
nimrod committed
    fixup = !cd "${GIT_PREFIX:-$PWD}" && git commit --fixup $(git last-commit)
    forget = reset HEAD^
    iec = commit --allow-empty --only --message \"Initial empty commit.\"
    pop = stash pop
    posh = push --set-upstream origin HEAD
    pre-commit = ! pre-commit run --files $(git uncommitted)
    Pull = pull --progress --ff --tags
    pull-force = !git fetch && git reset --hard "$(git tracking)"
    pushes = !git remote | xargs -n1 git push
    retry = !cd "${GIT_PREFIX:-$PWD}" && git amend --no-edit . && git shove
nimrod's avatar
nimrod committed
    rewrite = autorebase ':/Initial empty commit.'
    root = rev-parse --show-toplevel
nimrod's avatar
nimrod committed
    serve-git = daemon --reuseaddr --verbose --base-path=. --export-all ./.git
    serve-http = !git update-server-info && cd .git && python -m http.server 8080
    shove = push --force-with-lease
nimrod's avatar
nimrod committed
    squash = !cd "${GIT_PREFIX:-$PWD}" && git commit --squash $(git last-commit)
    staash = stash push --include-untracked
nimrod's avatar
nimrod committed
    staaash = stash push --all --include-untracked
    stat = status --short --branch
    tag-version = !git tag --annotate --force --message "v$(cat VERSION)" "v$(cat VERSION)"
    temptree = !git worktree prune && git worktree add "$(mktemp -d)"
nimrod's avatar
nimrod committed
    touch = "!f() { touch \"$@\" && git add -f \"$@\"; }; f"
    tracking = rev-parse --abbrev-ref --symbolic-full-name @{upstream}
    trigger = !git commit --allow-empty --no-edit --amend && git push --force-with-lease
nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed

[core]
    whitespace = space-before-tab,-indent-with-non-tab,trailing-space
nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed
[diff]
nimrod's avatar
nimrod committed
    tool = meld

nimrod's avatar
nimrod committed
[difftool]
nimrod's avatar
nimrod committed
    prompt = false

[fetch]
    fsckobjects = true
    prune = true
nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed
[filter "ansible-vault"]
    clean = ANSIBLE_VERBOSITY=0 ansible-vault encrypt
    smudge = ANSIBLE_VERBOSITY=0 ansible-vault decrypt
nimrod's avatar
nimrod committed

[grep]
    linenumber = true
nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed
[init]
    defaultBranch = master
nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed
    default = simple
nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed
[rebase]
    autoSquash = true
nimrod's avatar
nimrod committed

[receive]
    fsckObjects = true
nimrod's avatar
nimrod committed

[tag]
    forceSignAnnotated = true
nimrod's avatar
nimrod committed

[transfer]
    fsckobjects = true
nimrod's avatar
nimrod committed

[url "git@github.com:"]
	pushInsteadOf = "https://github.com/"

[user]
	name = Adar Nimrod
	email = nimrod@shore.co.il
nimrod's avatar
nimrod committed
	signingKey = A322378C61339ECD