开发者

GitHub: Bring a file into a separate repo

开发者 https://www.devze.com 2023-02-10 11:59 出处:网络
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 r

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

精彩评论

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