init
This commit is contained in:
32
git/.gitconfig
Normal file
32
git/.gitconfig
Normal file
@@ -0,0 +1,32 @@
|
||||
[user]
|
||||
name = Your Name
|
||||
email = you@example.com
|
||||
|
||||
[core]
|
||||
editor = nvim
|
||||
# Treat files with these line endings consistently on Linux
|
||||
autocrlf = input
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[pull]
|
||||
# Fail loudly if a pull would need a merge commit — forces you to decide
|
||||
rebase = false
|
||||
ff = only
|
||||
|
||||
[push]
|
||||
# Only push the current branch, not all branches
|
||||
default = current
|
||||
|
||||
[alias]
|
||||
# Short log with graph
|
||||
lg = log --oneline --graph --decorate -20
|
||||
# Show what changed in the last commit
|
||||
last = show --stat HEAD
|
||||
# Undo the last commit but keep the changes staged
|
||||
undo = reset --soft HEAD~1
|
||||
|
||||
[diff]
|
||||
# Show moved lines differently from changed lines
|
||||
colorMoved = default
|
||||
Reference in New Issue
Block a user