summaryrefslogtreecommitdiff
path: root/.gitconfig
blob: 1afad63bf6d2cababdc03c95047e62062e481493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[alias]
  st = status -sb
  lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
  sum = "!git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative \"$(git config --get init.defaultBranch)\"..HEAD"
  co = checkout
  df = diff
  cp = cherry-pick
  br = branch
  amend = commit --amend --no-edit
  fix = commit --fixup 
  autosquash = rebase -i --autosquash
 

[core]
  excludesfile = ~/.gitignore
  autocrlf = input

[init]
  defaultBranch = main

[user]
  name = Steph Enders
  email = "steph@senders.io"

[color]
  diff = auto
  status = auto
  grep = auto
  interactive = auto
  branch = auto

[include]
  path = ~/.pc_local_gitconfig