0

I am creating a website with web apps within it. I am now at the stage where I am using phonegap to turn the web apps into mobile apps, but for that I need to make a branch for each app which has the app's directory as the root.

How do I go about creating a branch with a sub directory as the root?

root directory
-> app 1
-> app 2
1
  • 4
    That's not how git branches work. Commented May 17, 2015 at 19:26

1 Answer 1

2

A branch doesn't work that way. If you want separate source control for each app, you should create a separate repository for each app.

If those subdirectories are a part of a larger project, should be versioned togeter and there's no way to separate them, use git-submodules. There's a git-subtree command to help you. But that is a more difficult concept which requires some experience with git, so use separate repos if you can.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.