1

I am creating a port of an app for win mobile 7 and I would like to push my master to "master/platforms/windowsmobile7" of the remote server.

is there a simple way of doing this without creating a whole tree structure and moving my project directory to somewhere else.

2 Answers 2

2

Your local copy of the remote repository is supposed to be a clone of it. You don't "push a folder" or a file, or a tree. You push commits. These are differences between two states of the repository.

So, I would say :

  • I don't think there's a way of doing what you want to do
  • It wouldn't be good practice

If you want to have sub projects in a repository, usually git submodules is the way to go.

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

Comments

0

It seems to me like you just want another branch: git checkout -b windowsmobile7 It's generally recommended to try to factor out platform-specific code into modules, though. That makes it easier to maintain common code over time.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.