2013-08-22 03:34:11 +02:00
|
|
|
# To set your identify:
|
2013-08-11 21:37:11 +02:00
|
|
|
git config --global user.name "John Doe"
|
|
|
|
git config --global user.email johndoe@example.com
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To enable color:
|
2013-08-11 21:37:11 +02:00
|
|
|
git config --global color.ui true
|
2013-08-27 02:34:36 +02:00
|
|
|
|
|
|
|
# To stage all changes for commit:
|
|
|
|
git add --all
|
|
|
|
|
|
|
|
# To commit staged changes
|
|
|
|
git commit -m "Your commit message"
|
|
|
|
|
|
|
|
# To push to the tracked master branch:
|
|
|
|
git push origin master
|
|
|
|
|
|
|
|
# To push to a specified repository:
|
|
|
|
git push git@github.com:username/project.git
|