Skip to content

Instantly share code, notes, and snippets.

@markatom
Last active August 23, 2019 08:30
Show Gist options
  • Save markatom/47e21b940e42cece0cec449112ed8fdc to your computer and use it in GitHub Desktop.
Save markatom/47e21b940e42cece0cec449112ed8fdc to your computer and use it in GitHub Desktop.
Base git config suitable for beginners
[user]
name = John Doe
email = [email protected]
[core]
editor = nano # use what you like
[status]
showUntrackedFiles = all # show also individual files in untracked directories
[push]
default = current #  push the current branch to update a branch with the same name on the receiving end
[pull]
rebase = true # rebase branches on top of the fetched branch, instead of merging
[pretty]
compact = %Cblue%h %Cgreen%an %C(yellow)%ar%Cred%d%n%Creset%s # custom log format
[alias]
graph = log --graph --pretty=compact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment