Difference between revisions of "Git installation"

From relax wiki
Jump to navigation Jump to search
Line 1: Line 1:
== Git setup commit information ==
+
== Git local repository varables ==
 +
This setup should provide a good framework
 +
=== Git setup commit information ===
 
Write in terminal
 
Write in terminal
 
  git config --add user.name "Your Name"
 
  git config --add user.name "Your Name"
Line 10: Line 12:
 
  git config --add github.user GIT_USER_NAME
 
  git config --add github.user GIT_USER_NAME
  
== relax_commit.txt ==
+
=== relax_commit.txt ===
 
Write in "relax_commit.txt" from [[Format_commit_logs]].
 
Write in "relax_commit.txt" from [[Format_commit_logs]].
 
  git config --add commit.template "relax_commit.txt"
 
  git config --add commit.template "relax_commit.txt"
Line 16: Line 18:
 
  git commit
 
  git commit
  
== .gitignore ==
+
=== .gitignore ===
 
Consider placing a file '''.gitignore''' in the root of the repository.<br>
 
Consider placing a file '''.gitignore''' in the root of the repository.<br>
 
It could contain this information
 
It could contain this information

Revision as of 10:52, 24 June 2013

Git local repository varables

This setup should provide a good framework

Git setup commit information

Write in terminal

git config --add user.name "Your Name"
git config --add user.email you@example.com
git config --add core.editor "notepad++"
git config --add core.editor "notepad"
#Optional, if you want to synchronize to your github account
git config --add github.user GIT_USER_NAME

relax_commit.txt

Write in "relax_commit.txt" from Format_commit_logs.

git config --add commit.template "relax_commit.txt"
git add relax_commit.txt
git commit

.gitignore

Consider placing a file .gitignore in the root of the repository.
It could contain this information

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc
*.py.swp

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store*
ehthumbs.db
Thumbs.db
*~

Check in the file

git add .gitignore
git commit