开发者

GitHub: Bring a file into a separate repo

I need a specific file from an online repo brought into the local clone of my current project. I'd also like the file in a specific directory in the current project. I don't want to go the easiest route (copy the file from the clone); I'd rather have the file be updatable from the online repo and have that file pushed to my current project's online repo开发者_如何转开发.

Thanks, DZ


you might be able to use submodules:

http://speirs.org/blog/2009/5/11/understanding-git-submodules.html

they heard you like git, so they put git inside your git, so you can git while you git.


I think you're looking for something like git-submodule

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜