[user]
	name = a.stevan
	email = antoine.stevan@isae-supaero.fr
	signingkey = /home/disc/a.stevan/.ssh/keys/gitlab.isae-supaero.fr
[init]
  defaultBranch = main

[core]
  pager = delta

[status]
    branch = true
    showStash = true
    showUntrackedFiles = all

[delta]
  side-by-side = false
  line-numbers = true
  file-style = cyan
  light = false
  hunk-header-line-number-style = cyan
  tabs = 16

[alias]
  a       = add
  au      = add -u
  ae      = add --edit

  st      = status --short
  sti     = status --short --ignored

  cm      = commit --verbose
  cmm     = commit --verbose -m
  cma     = commit --verbose --amend
  cmane   = commit --verbose --amend --no-edit
  cme     = commit --verbose --allow-empty
  cmn     = commit --verbose --no-verify

  co      = checkout
  cob     = checkout -b

  br      = branch
  brf     = branch -f
  brm     = branch -m
  brd     = branch -D

  sh      = stash
  shp     = stash pop
  sha     = stash apply
  shl     = stash list
  shd     = stash drop
  shs     = stash show

  rb      = rebase
  rbi     = rebase -i
  rbc     = rebase --continue
  rbs     = rebase --skip
  rba     = rebase --abort

  tr      = log --graph --oneline --decorate
  tra     = log --graph --oneline --decorate --all
  trd     = log --graph --oneline --decorate --color=always --pretty='%C(auto)%h %Cred -%ch- %C(auto)%d %s'
  trs     = log --graph --oneline --decorate --simplify-by-decoration
  trf     = log --graph --pretty=format:'%C(auto)%h %G? %GS %C(dim)(%ci) %C(cyan)%<(10,trunc)<%an> %C(auto)%d %<(50,trunc)%s%C(reset)' --decorate

  lf      = ls-files                                            # list tracked files.
  lfs     = !git ls-files | xargs ls -1 | sort -nrk5            # sorts the tracked files by order of size.
  lfsh    = !git ls-files | xargs ls -1 | sort -nrk5 | head -n  # show the n biggest tracked files.
  df      = diff
  dfh     = diff HEAD
  dfs     = diff --stat

  ftap    = fetch --all -p

  ps      = push
  pso     = push origin

  rst     = restore
  rsts    = restore --staged
  rv      = revert
  rs      = reset
  rh      = reset --hard
  cdf     = clean -df

  rmt     = remote
  rmtv    = remote -v
  rmta    = remote add
  rmtsu   = remote set-url

[pull]
  rebase = true
[push]
	autoSetupRemote = true
	default = nothing
	gpgsign = false
[commit]
	gpgsign = true
[tag]
	gpgsign = true
[safe]
	directory = /mnt
[advice]
	detachedHead = false
[gpg]
	format = ssh
[credential "https://gitlab.isae-supaero.fr"]
	helper = !/home/disc/a.stevan/.local/bin/glab auth git-credential
[gpg "ssh"]
	allowedSignersFile = ~/.ssh/allowed_signers
