Skip to content

Instantly share code, notes, and snippets.

@gyorgygutai
Created June 28, 2024 10:27
Show Gist options
  • Save gyorgygutai/89ade5ba7eb09277a8b4b04cd68eaa53 to your computer and use it in GitHub Desktop.
Save gyorgygutai/89ade5ba7eb09277a8b4b04cd68eaa53 to your computer and use it in GitHub Desktop.
my gitconfig
# This is Git's per-user configuration file.
[user]
name = Gyorgy Gutai
email =
[alias]
l = log
b = branch
s = status
c = checkout
ci = !git checkout $(git branch -a | fzf | xargs)
db = !git branch -D
dbi = !git branch -D $(git branch -a | fzf | xargs)
cb = !git branch --show-current | pbcopy
cbi = pbcopy $(git branch --show-current | fzf | xargs)
cbd = checkout develop
cm = checkout main
cbm = checkout main
p = pull
pd = pull origin develop
pm = pull origin main
md = merge develop
nb = checkout -b
a = add .
ca = !git add . && git commit --amend
amend = !git add . && git commit --amend
la = "!git config -l | grep alias | cut -c 7-"
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment