[user] email = julien@codeka.io name = Julien WITTOUCK signingkey = /home/jwittouck/.ssh/id_ed25519.pub [core] editor = vim pager = gum pager hooksPath = /home/jwittouck/.config/git/hooks [commit] gpgsign = true [format] pretty = oneline [alias] # show log lines logline = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cD) %C(bold blue)<%an>%Creset' --abbrev-commit # show last commit content last = log -1 HEAD --status # amend previous commit amend = commit --amend --no-edit # Unstage changes from the index unstage = reset HEAD -- # execute a git command on subdirectories all = "!f() { ls -R -d */.git | sed s,/.git,, | xargs -P10 -I{} git -C {} $1; }; f" # publish a new branch to origin first-push = "!git push -u origin $(git rev-parse --abbrev-ref HEAD)" # publish without ci push-without-ci = push -o "ci.skip" [pull] ff = only [init] defaultBranch = main [remote "origin"] prune = true [help] autocorrect = 1 [rebase] autosquash = true [gpg] format = ssh [gpg "ssh"] allowedSignersFile = /home/jwittouck/.config/git/allowed_signers [tag] gpgsign = true