-
-
Save alexsandro-xpt/edc391219e2930b7c5a3275a56cf7f05 to your computer and use it in GitHub Desktop.
My .gitconfig and .gitattributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Giovanni Bassi | |
email = giggio@email | |
[diff] | |
indentHeuristic = true | |
submodule = log | |
[color] | |
diff = always | |
interactive = always | |
status = always | |
branch = always | |
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
br = branch | |
fixup = commit --all --amend --no-edit | |
open = !explorer `git config remote.origin.url` | |
browse = !git open | |
up = push upstream master | |
sync = pull upstream master --rebase | |
which = !git branch | grep -i | |
daily = !sh -c 'git log --since=yesterday --format=%s --author=Giovanni' | |
serve = daemon --reuseaddr --verbose --base-path=. --export-all ./.git | |
ngrok = "!f() { \ | |
NGROK_WAIT=${NGROK_WAIT:-1}; \ | |
git serve & ngrok tcp 9418 > /dev/null 2>&1 & \ | |
echo >&2 "Waiting $NGROK_WAIT seconds for git daemon and ngrok to start..."; \ | |
sleep $NGROK_WAIT; \ | |
public_url=$(curl -s http://localhost:4040/api/tunnels/command_line | jq -r '.public_url[3:]'); \ | |
public_url="git$public_url/"; \ | |
echo "Serving repo at: $public_url"; \ | |
echo "Press CTRL C to stop."; \ | |
sleep infinity; \ | |
}; f" | |
pr = "!f() { exec vsts code pr \"$@\"; }; f" | |
repo = "!f() { exec vsts code repo \"$@\"; }; f" | |
[pull] | |
ff = only | |
[push] | |
default = simple | |
[log] | |
decorate = full | |
abbrevCommit = true | |
[format] | |
pretty=format:%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset | |
[gui] | |
gcwarning = false | |
[commit] | |
gpgsign = true | |
[gpg] | |
program = C:/Program Files (x86)/GNU/GnuPG/pub/gpg.EXE | |
[core] | |
pager = diff-so-fancy | less --tabs=4 -RFX | |
longpaths = true | |
[diff "pandoc2md"] | |
textconv = pandoc --to=markdown | |
[diff "wrap"] | |
textconv = fmt | |
[diff "xlsx"] | |
textconv = python -m xlsx2csv | |
[diff "listzipfiles"] | |
textconv = unzip -l | |
[merge "npm-merge-driver"] | |
name = automatically merge npm lockfiles | |
driver = npx npm-merge-driver merge %A %O %B %P | |
[credential] | |
helper = manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm-shrinkwrap.json merge=npm-merge-driver | |
package-lock.json merge=npm-merge-driver | |
*.docx diff=pandoc2md | |
*.md diff=wrap | |
*.xlsx diff=xlsx | |
*.zip diff=listzipfiles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment