Loeliger Jon-LOELIGER wrote:I don't think that exact behavior is implemented yet, but... If the filesystem-local repo is pure subset version of the source repo you could do this: (assuming the filesystem-local repo is on branch master, and that is what you want) git clone -l <filesystem-local repo> <my_new_repo> cd <my_new_repo> git pull <source-repo> No reason not to use -l on clone in this case IMO. Otherwise... If the filesystem-local repo has changes past the master HEAD on source repo that you are not necessarily interested in... 1) git clone -l -n <filesystem-local repo> <my_new_repo> 2) cd <my_new_repo> 3) git fetch <source_repo> master:tmp 4) git branch -M tmp master 5) git checkout master 1) Here we use -l to encourage hard linking (no reason not to IMO), and tell clone not (-n) to checkout the active branch. 3) Now fetch the master branch from the source_repo and store into a new branch named tmp. 4) Rename tmp to master. 5) Checkout the files. - Now the HEAD of master branch is at the same commit as the source_repo. One drawback is that origin is now tracking the filesystem-local repo, so a git pull without supplying a repo will pull from filesystem-local repo. -brandon - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Hiten Pandya | Re: up? (emacs docbook xml ide) |
| Martin Michlmayr | Network slowdown due to CFS |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Yaroslav Tarasenko | Re: PC-BSD |
| Ben Cadieux | DragonFly MBR |
| justin | Re: dragonfly pdf documentation |
| dark0s Optik | DragonFly over Sony Vaio |
