Here there are some examples of git commands that I use often.
Not all commands written here are git commands, but all of them are related to git. Please refer to the documentation for more details.
#####Set your details
git config --global user.name "John Doe"
git config --global user.email "john@example.com"
Use --global
to set the configuration for all projects. If git config
is used without --global
and run inside a project directory, the settings are set for the specific project.