.gitconfig 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [user]
  2. name = Jean-Christophe Bach
  3. email = jc.bach@imt-atlantique.fr
  4. signingkey = 0x520E0E85EA19F34E
  5. [core]
  6. quotepath = false
  7. editor = vim
  8. excludesfile = /home/jcbach/.gitignore_global
  9. autocrlf = input
  10. [push]
  11. default = simple
  12. [color]
  13. diff = auto
  14. status = auto
  15. branch = auto
  16. [help]
  17. autocorrect = 1
  18. [merge]
  19. tool = vimdiff
  20. [credential]
  21. host = *.telecom-bretagne.eu/
  22. username = jcbach
  23. helper = cache
  24. [filesystem "IcedTea|1.8.0_222|/dev/mapper/vg1-home"]
  25. timestampResolution = 2001 microseconds
  26. minRacyThreshold = 12892 microseconds
  27. [pull]
  28. rebase = false
  29. [init]
  30. defaultBranch = main
  31. [alias]
  32. co = checkout
  33. br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
  34. undo = reset HEAD~1 --mixed
  35. change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f"
  36. #examples of git change-commits:
  37. #git change-commits GIT_AUTHOR_NAME "old name" "new name" (change the author name)
  38. #git change-commits GIT_AUTHOR_EMAIL "old@email.com" "new@email.com" HEAD~10..HEAD (change the email for only the last 10 commits)
  39. #git change-commits GIT_COMMITTER_EMAIL "old@example.com" "new@example.com" (change the committer email)
  40. tags = tag -l