开发者

How do I use Github to create a totally separate project from a previous project?

I have a project on github that my developer and I used to collaborate on an iPhone app. That was my first exposure to version con开发者_C百科trol and I used only a few tasks/commands: push, pull, stash on occasion.

We're now looking into making an OS X version and I'd like to use that previous project as the starting point for this new project.

It seems like this is FORKING the project. But I want to make sure that, once copied, the new (OS X) project has nothing to do with the previous (iOS) project. Is that what forking does? I've usually only heard it in regards to adding features. I've also heard the term cloning, but I believe that refers to making the local copy?


Try this:

  1. Create a blank new project on GitHub
  2. Do a git clone on the latest version of the iOS project to make a new copy of it.
  3. Edit the information in the git config under .git in the copy folder to point to the new project on GitHub.


Forking is what you want. Creating a new project will lose the history from the original project, and will make it considerably more difficult to merge changes back and forth between the two. (Which you're likely to end up wanting to do if the projects are related at all.)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜