computer_smile
computer_smile

Reputation: 2227

Github Work Flow for Fork

What am I missing that is so blatantly obvious here?

I want to contribute to a fork of a main project on github, however when I use the github UI to fork the repo it forks the main project and not the fork I want to contribute to.

The reason I want to contribute to the fork is it uses a different billing system that is already configured so it doesn't make sense for me to fork the original project which uses the "other" payment system. In theory I want to-

However, when I attempt to use the UI to fork, it returns the fork of the original project (with non preferred pmt system). What am I missing here, I'm sure this happens all the time but searching around I haven't found the intended method of performing this.

Upvotes: 0

Views: 214

Answers (1)

user456814
user456814

Reputation:

As I mentioned in this comment, you could just fork the main project at https://github.com/lockitron/selfstarter, then add siddarth's fork as a remote and fetch his branches. When you're done working on a branch based off of his changes, push the work to your own private fork.

I'm not sure if GitHub will let you send a pull request to siddarth's fork, but GitHub does have that feature at least for people working in organizations.

If it turns out that you can't send a pull request through GitHub directly to siddarth's fork, then you can do it manually using git request-pull and sending the output as an email to siddarth (the process is explained in further detail in the Pro Git book):

git request-pull <start-commit> <url-of-your-remote-fork> > pull-request.txt

Also, you could just contact siddarth and ask him to check out the changes in your remote fork that way (he could just fetch them).

Of course, the disadvantage of not using GitHub's pull-request functionality is that you don't get the built-in code reviewing system attached to the pull-request.

Upvotes: 2

Related Questions