
See changes/difference of a specific file: $ git diff Īdd all current changes to the next commit: $ git add. Local Changes Changes in working directory: $ git status Via SSH $ git clone ssh:// /repo.gitĬreate a new local repository in the current directory: $ git initĬreate a new local repository in a specific directory: $ git init System-wide configuration file : /etc/gitconfig User-specific configuration file : ~/.gitconfig Set global editor for commit $ git config -global core.editor viĬonfiguration Files Repository specific configuration file : /.git/config Set automatic command line coloring for Git for easy reviewing: $ git config -global color.ui auto Set an email address that will be associated with each history marker: $ git config -global user.email "" Set a name that is identifiable for credit when review version history: $ git config -global user.name ""

Show system configuration: $ git config -system -list Show global configuration: $ git config -global -list Show repository configuration: $ git config -local -list Setup Show current configuration: $ git config -list You are also free to add your language file.
#Git config color ui auto update#
Git cheat sheet saves you from learning all the commands by heart.īe free to contribute, update the grammar mistakes. Git and Git Flow Cheat Sheet Other Available Languages:
