This repository has the purpose of showing current git global configuration for author's common repositories. The contents of the file .gitconfig-personal
can be copied, then, to the config
file.
- Use
git config --global --edit
.
The file name, .gitconfig-personal
is decided arbitrarily to be different than .gitconfig
(config file) to avoid confusion with it, specially after copying it.
git lol
andgit lola
: these alias output an one-liner graphed-version of thegit log
, which can very useful.- As a side note, a simpler version of it is found in the book Pro Git as an example.
git up
: this alias serves the purpose of keeping the local repository's main/master branch updated -- dynamically.- It was adapted from Duncanlock.net and this Stackoverflow thread.
- This same thread ("Git alias which works for
main
ormaster
or other") shows an alternative to yield the "default branch":!git symbolic-ref refs/remotes/origin/HEAD | cut -d'/' -f4
. - It may not work on Windows due to the
sed
or similar commands (see alternatives). As a consequence, commands dependable on it may not work either.