Posts Tagged ‘file’

GIT – How to merge specific files from another branch

Monday, September 3, 2012 16:41 No Comments

Using GIT you can merge specific files from another branch using the ‘checkout’ command. After you checkout the files do a commit on the current branch. Example: $ git checkout anotherBranchName  path/to/file.etx    path/to/file2.ext     path/to/file3.ext $git commit -m “Merged files from anotherBranchName”

This was posted under category: Programming, Unix/Linux, Web Tags: , , , , ,

Upload/Download files with SFTP

Tuesday, February 1, 2011 21:01 No Comments

Uploading/Downloading files through your *nix console. Connection: $ sftp user@domain.com Available commands: ls list files pwd show which directory you are in on the server side lpwd show which directory you are in on the client side cd DIRECTORY change current location to DIRECTORY on the server side lcd DIRECTORY change current location to DIRECTORY [...]

This was posted under category: Unix/Linux Tags: , , , , , , , , ,

Linux- Recursively change permissions on files or directories only

Thursday, March 25, 2010 22:33 No Comments

If you wondered how to change permissions recursively on files or folders only, here is the how to using the find command. Change permissions recursively to directories only: find /path/to/folder    -type d    -exec  chmod 0755   {}   \; Change permissions recursively to files only: find /path/to/folder    -type f    -exec  chmod [...]

This was posted under category: Unix/Linux Tags: , , , , , , ,