# This is Git's per-user configuration file.
[core]
# Please adapt and uncomment the following lines:
  user = Gal Schlezinger
  email = galstar@spitfire.co.il
  editor = nvim
  pager = delta --tabs=4 # --side-by-side

[user]
  name = Gal Schlezinger
  email = gal@spitfire.co.il
	signingkey = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDjcbGOWxVMfBId02womhGedGNRdr3yxYPjfhowIw0mZBgLCSeFbzG1LPbICHazxdsdOq1W+/iajPFDtqA4X5muvnO92hFBmPY5q3C7JP71bRo1oko39MmfkHJuCn7JXnXgwQD3ek9Pjzrve9dD9uvhVhcxufw4AgynerSA6lEKcc5/dWLdDgNe5EC/tMvf5QdJX8JRKIBJXYeiH0qf+M9/XHMC7fw/aCTK+Ss07ftpOuZ2Iy97tILUY8Ktkv3OviK7WwpTJPiZz5MON05i/tbu2BPLXQWaQiaYtspQoaPaaVg4HwMn2RrT6wuNWGrOAp4fml/2oHNqj0w8CfplSCdi2s48qTMJgoLDkOw2ufpWG4vGrIPgl6VqwQX6qRxVm3wXyUNxwXqSiLJiDYaeRNWWoXTshfrJRithh9U6QPjXKe7CrCz5d5Zog17Ku8ctn20eEh7+KzTsFxY9ACBH2Ij6vOStvMaUyk8jPNrqqgCIcbAxHHp/OOOaNQ7DYFis6jU=

[alias]
  automerge = !enable-automerge
  m = !git co $(get_main_branch)
  ac = add . && commit
  co = checkout
  ffm = merge --ff-only
  poh = push --set-upstream origin head
  puh = push upstream head
  dc = diff --cached
  bdbd = !git branch --merged | egrep -v \"(^\\*|master|dev)\" | xargs git branch -d
  pick = !git log -300 --oneline --color $1 | fzf -m --ansi --preview 'git show --color {1}' | awk '{print $1}'
  sw = !show_branches | fzf --ansi --header='checkout branch' --reverse | awk '{print $1}' | xargs git checkout
  c = commit -m
  conflicted = diff --name-only --diff-filter=U
  web = !gh repo view --web
  fo = fetch -p origin
  fu = fetch -p upstream
  pff = pull --ff-only
  pr = !gh pr create -a Schniz
  bpr = !gh pr view --web
  cis = !gh pr checks
  pco = !gh pr checkout
  pr-bug = !hub pull-request -a Schniz -l bug
  issue = !hub issue create
  mr = !lab merge-request
  dno = !git diff $(get_main_branch) --name-only
  # set a symbolic link to the main branch
  symbolic-main = symbolic-ref refs/heads/main

[help]
  autocorrect = 10

[gpg]
  program = /usr/local/bin/gpg
	format = ssh

[filter "lfs"]
  clean = git-lfs clean -- %f
  smudge = git-lfs smudge -- %f
  process = git-lfs filter-process
  required = true

[push]
  default = current

; [commit]
;   gpgsign = true

[protocol]
	version = 2

[init]
	defaultBranch = main

; [include]
;   path = ~/.gitconfig.local
[credential "https://github.com"]
	helper = 
	helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
	helper = 
	helper = !/opt/homebrew/bin/gh auth git-credential
[rerere]
	enabled = true
[gpg "ssh"]
	program = ssh-sign-cmd
[commit]
	gpgsign = true
