Skip to content

eritikass/git-test1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git basics

Setup

Setup user name and emails identifying your commits.

git config --global user.name "John Doe"
git config --global user.email "[email protected]"

Setup some nice defaults

git config --global push.default simple
git config --global branch.autosetuprebase always
git config --global diff.renames

You can see your configs

git config --list

Aliases

You can setup aliases for your git commands.

git config --global alias.st status
git config --global alias.up "pull --rebase"
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git config --global alias.ltree "log --oneline --graph --decorate --all"

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published