// Git Clone local repository to another repository // ----------------------------------------------- $ mkdir c/xampp/htdocs/repo1 // create repository one $ cd c/xampp/htdocs/repo1 // Go into folder $ git init // initialise the git $ git add -all // All all the file and folder // To clone all the files except particular folders // ----------------------------------------------- $ git reset -- folder1/ folder2/ // Exclude the folder1, folder2 from committing // To clone to another local directory // ----------------------------------------------- $ git clone path_to_repository1/ path_to_another_repository/ $ git pull // To pull the updates from repo1.
Thursday, 22 May 2014
Git Clone local repository to another repository, Exclude some folder
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Please post any queries and comments here.