Skip to content

Instantly share code, notes, and snippets.

@felipecwb
Last active May 20, 2024 15:23
Show Gist options
  • Save felipecwb/583a756e9460b3fc9dc9 to your computer and use it in GitHub Desktop.
Save felipecwb/583a756e9460b3fc9dc9 to your computer and use it in GitHub Desktop.
Some git configs
[user]
name = ...
email = ...
signingkey = ...
[alias]
yolo = "!git add -A && git commit -m \"$(curl -s https://whatthecommit.com/index.txt)\""
timeline = log --graph --branches --pretty=oneline --decorate --abbrev-commit --all
history = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all --decorate --abbrev-commit
[core]
editor = vim
autocrlf = input
eol=lf
whitespace = cr-at-eol
excludesfile = ~/.gitignore
[commit]
gpgsign = true
[merge]
tool = nvim -d
conflictstyle = diff3
prompt = false
[mergetool]
keepBackup = false
[branch]
autoSetupMerge = true
[push]
default = current
autoSetupRemote = true
[pull]
default = current
ff = only
[url "ssh://[email protected]/"]
insteadOf = "https://github.com/"
*.swp
*.swo
GPATH
GRTAGS
GTAGS
.tool-versions
@felipecwb
Copy link
Author

Changes in awk 4.1 gensub function:
from: gensub(\"remotes/\", \"\", $0)
to: gensub(\"remotes/\", \"\", \"g\", $0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment