splitsh/lite

How to push the commits to a new repo?

chris-dura opened this issue · 2 comments

The sha1 can be used to create a branch or to push the commits to a new repository.

I'm confused at how I can push the commits to a new repository?

For instance, you can add the new repository as another remote.
Then, just push the reference to this remote and desired branch:

git push new_remote SHA1:remote_branch
# e.g: git push api-subtree cb9c28b:master

How do a get a composer.json file added to the new repository also? If I add it myself ..

hint: Updates were rejected because the remote contains work that you do
hint: not have locally