Difference between revisions of "Git installation"
Jump to navigation
Jump to search
| Line 4: | Line 4: | ||
git config --add user.email you@example.com | git config --add user.email you@example.com | ||
git config --add github.user GIT_USER_NAME | git config --add github.user GIT_USER_NAME | ||
| + | |||
| + | == .gitignore == | ||
| + | Consider placing a file '''.gitignore''' in the root of the repository.<br> | ||
| + | It could contain this information | ||
| + | |||
| + | <source lang="text"> | ||
| + | # 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 | ||
| + | *~ | ||
| + | </source> | ||
Revision as of 10:11, 24 June 2013
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 github.user GIT_USER_NAME
.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
*~