Wednesday 26 December 2018

How to move files from one git repo to another (not a clone), preserving history

Method#1

If your history is same, you can take the commits out as patch and apply them in the new repository:

cd repository
git log --pretty=email --patch-with-stat --reverse --full-index --binary -- path/to/file_or_folder > patch
cd ../another_repository
git am < ../repository/patch

referred from : https://stackoverflow.com/questions/1365541/how-to-move-files-from-one-git-repo-to-another-not-a-clone-preserving-history

Wednesday 25 April 2018

Trigger remote task which is configured on task scheduler using command

schtasks /Run /S REMOTESERVER1 /I /TN "taskname"