Wednesday, August 14, 2013

git - An easy learning


If you have several files or directories and want to compare non continuous commits, you could do this: 

Make a temporal branch

git checkout -b revision

Rewind to the first commit target

git reset --hard 

Cherry picking on those commit interested

git cherry-pick  ...

Apply diff

git diff ^

When you done

git branch -D revision

rsync with delete option and different ssh port

How to rsync e.g PIPELINE dir from Source to Destination? #rsync -avzr   --delete-before  -e "ssh -p $portNumber"  /local...