Skip to content

israeldvd/git-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Git configuration

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.

Some non-trivial commands

  • git lol and git lola: these alias output an one-liner graphed-version of the git 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 or master 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.

About

List example git global configurations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published