Skip to content

Instantly share code, notes, and snippets.

@santi020k
Last active November 17, 2016 18:17
Show Gist options
  • Save santi020k/b29708e09f535c969e92ca2219a1e9c8 to your computer and use it in GitHub Desktop.
Save santi020k/b29708e09f535c969e92ca2219a1e9c8 to your computer and use it in GitHub Desktop.
Basic git configuration for my
Options:
--local //only available into git project
--global // actually users
--system // all users
Commands:
Basic user config information:
$ git config --global user.email youremail@example.com // Configure email
$ git config --global user.name "YourName" // Configure user name
Best log show see branch and HEAD position
$ git config --global alias.lg "log --oneline --decorate --all --graph" // Use with git lg, git log continue normality
Simplicity git status
$ git config --global alias.s "status -s" // use with git s, git status continue normality
Git pull use ribase ever
$ git config --global pull.ribase true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment