You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't understand this question. If you have myproject with the two specified directories you would typically want to make foo and or bar subrepos, but they would be subrepos of their own project and not subrepos of myproject. So lets walk through making foo and bar subrepos
You have myproject that has two libraries foo and bar. You would like to make foo into its own repo so others can benefit from your hard work in other projects.
From the myproject directory run git subrepo init foo --remote <place you are going to create the foo repo>
That will create a patch in my project that adds a .gitrepo file that tells subrepo these files are related to the external repo you specified in remote (you don't technically have to specify remote, but you will have to set one before you can push or pull). To send the files to the remote location you would do a git subrepo push foo. Assuming you are using github you would need to create the repo via the github interface first, but if you did this that repo would then have all the files in the foo directory and you can use the content accordingly.
I have a bunch of git repos
foo
andbar
How can I convert them into subrepos of
myproject
?The text was updated successfully, but these errors were encountered: