How to Copy Files with specific extension from multiple directories into a single directory Linux
find . -type f -print0 | xargs -0 cp -t /home/my/dir/
The only problem is file name conflicts...hmmm how to solve?
find . -type f -print0 | xargs -0 cp -t /home/my/dir/
The only problem is file name conflicts...hmmm how to solve?
This post specifies the default php includes path on a linux distribution. The one I used was gentoo.
This is the path that will be globally included in all your php projects.
It is:
include_path = ".:/usr/share/php5:/usr/share/php"
If you want to change this path, just change the above line in php.ini and restart apache or other web server.
php.ini can be found at:
/etc/php/apache2-php5.5/php.ini
In most projects we have a set of files that we do not want to track these are usually logs or compilation or runtime files. In these cases we make use of:
.gitignore
To create a file listing to match the files we don't want to track:
cat .gitignore
*.[oa]
*~
This tells git to ignore all files ending in .o or .a and all files that end with a tilde.
It s important to setup your .gitignore before you get going on the project so you don't accidentally commit unnecessary files.
Gitignore Rules:
man git
Gitignore: specifies intentionally untracked files to ignore.
Files already tracked by git are not affected. Each gitignore file has a pattern, and have an order of precedence as follows:
Gitignore patterns should be version controlled and distributed to other repositories in the .gitignore file. Patterns specific to a single user should go into the $GIT_DIR/info/exclude file.
Files / patterns that should be ignored in all situations should go into the core.excludesfile in ~/.gitconfig
To ignore uncommited changes in a file that is already tracked:
git update-index --assume-unchanged
To stop tracking a file that is currently tracked:
git rm --cached
Taken from: Git Pro