Changes

Jump to navigation Jump to search

Git installation

2,187 bytes added, 18:07, 19 October 2015
Forced creation of a TOC - this will improve the formatting on the main page 'Did you know...' section.
== Git setup commit information ==# Write in terminal git config --global user.name "Your Name" git config --global user.email you@example.com git config --global github.user GIT_USER_NAME git config --global github.token 0123456789yourf0123456789token__TOC__
== Install ==Use [[msysgit]] for windows. To install on linux, see here [http://git-scm.com/downloads git-scm.com]. To build newest version, for example 1.8.x on CentOS, see here [[git_build]]. == Git user/repository variables ==This setup should provide a good framework=== See config list === git config --list === 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 informationgithub account cat ~git config --global --add github.user GIT_USER_NAME === Git aliases ===For creating shorter [http://davidwalsh.name/git-aliases Git aliases] git config --global alias.gitconfigco checkout git config --global alias.br branch git remote show originconfig --global alias.com commit git config --global alias.stat "status -uno" == Git local repository file settings == === relax_commit.txt ===Write in "relax_commit.txt", by getting template from [[Format_commit_logs]]. git config --add commit.template "relax_commit.txt" === .gitignore ===Consider placing a file '''.gitignore''' in the root of the repository.<br>It could contain this information <source lang="text"># Git filesrelax_commit.txt.gitignoreauthors.txtrelax_scripts*.patch # From scons.sconsign.dblite.sconsign.tmp # From building: scons api_manual_htmldocs/api/relaxcsconstructc # From building: scons user_manual_pdf*.aux*.bbl*.blg*.dvi*.idx*.ilg*.ind*.lof*.lot*.out*.tocdocs/latex/docstring.texdocs/latex/relax_version.texdocs/latex/script_definition.texdocs/latex/relax.pdfdocs/relax.pdf # From test_suitespin_ # Compiled source ####################*.pyc*.obj*.exp*.lib*.pyd # Packages ############## it's better to unpack these files and commit the raw source# git has its own built in compression methods*.gz*.rar*.tar*.zip # Logs and databases #######################/docs/latex/*.log # OS generated files #######################.DS_Store*ehthumbs.dbThumbs.db*~</source> == See also ==[[Category:Git]]
Trusted, Bureaucrats
4,228

edits

Navigation menu