Skip to content

Instantly share code, notes, and snippets.

@NikiYani
Created August 30, 2023 15:51
Show Gist options
  • Save NikiYani/5b9860b4145990f239d540ffe06e3816 to your computer and use it in GitHub Desktop.
Save NikiYani/5b9860b4145990f239d540ffe06e3816 to your computer and use it in GitHub Desktop.
My .gitconfig
[user]
email = YanchenkovNS@?????.ru
name = Yanchenkov Nikita Sergeevich
username = YanchenkovNS
[init]
defaultBranch = master
[credential]
helper = cache
[alias]
s = status
co = checkout
cob = checkout -b
del = branch -d
delf = branch -D
save = add -A && git commit -m
undo = reset HEAD~1 --mixed
res = reset --hard
done = push origin HEAD
lg = log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -8 --graph
br = branch --sort=-committerdate --format='%(color:reset)%(HEAD) %(color:green)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) %(color:green)[%(authorname)]'
[core]
excludesFile = ~/.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment