Here is Step by Step Tutorial to Create git ignore file for our git project.
For Ubuntu / unix os
$ touch .gitignore
Now Open .gitignore using your Text Editor and copy below Code ( pattern) and paste in .gitignore file..
Copy and paste into .gitignore files.
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# 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
*.jar
*.rar
*.tar
*.zip
# PHP IGNORE
#/inc/log.txt
/logs/log.txt
/logs/*.php
/*.txt
*.txt
test.php
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
How to Fixed Gitignore if not Working properly.
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.