Open main menu

Changes

Git installation

47 bytes added, 20:33, 21 July 2013
no edit summary
=== Git setup commit information ===
Write in terminal
git config --global --add user.name "Your Name" git config --global --add user.email you@example.com
It is recommended to install [[EditPad Lite]], and use this as an commit message editor, so you won't have line ending mis-match in windows. Just save after writing the commmit message, and exit the program. The message is committed.
#Windows
git config --global --add core.editor "EditPadLite7"
#Linux
git config --global --add core.editor "nano" git config --global --add core.editor "gedit" git config --global --add core.editor "vim"
#Optional, if you want to synchronize to your github account
=== Git aliases ===
For creating shorter [http://davidwalsh.name/git-aliases Git aliases]
git config --global alias.co checkout git config --global alias.br branch git config --global alias.com commit git config --global alias.stat "status -uno"
== Git local repository file settings ==
git config --add commit.template "relax_commit.txt"
git add relax_commit.txt
git commit commit message<source lang="text-m ">Added default relax commit message. </source>"
# To see the commit message
Trusted, Bureaucrats
1,382

edits