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 lolandgit 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
mainormasteror 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
sedor similar commands (see alternatives). As a consequence, commands dependable on it may not work either.