Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6609609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:44:17+00:00 2026-05-25T19:44:17+00:00

I’m no git expert by any means, so I want to make sure the

  • 0

I’m no git expert by any means, so I want to make sure the following flow is good:

  1. Find a repo I want to contribute to. (original repo)
  2. Fork the original repo on github. (my fork)
  3. Clone my fork to my machine, outside of any project I’m working on. (isolated clone)
  4. Include my fork as a submodule of a project I want to use it in. (submodule clone)
  5. Create a feature branch on the isolated clone, and add some stuff.
  6. Create another feature branch and other unrelated stuff.
  7. Add the original repo as a remote to my isolated clone.
  8. Rebase to the original repo.
  9. Push and pull the two feature branches into my isolated clone‘s master.
  10. Pull from the submodule clone that is in my project.
  11. Submit pull requests to the original repo from each feature branch in the isolated clone.
  12. Pull requests get accepted.
  13. Rebase my fork‘s master branch to reflect the new master with my changes.

Any mistakes in there?

And then with that, what should I do with my feature branches on my local machine? Rebase them to my local master perhaps? Delete them (is that bad?)?

If they don’t accept my requests, I’d still like to merge them into my local master. Will that screw anything up?

I’m trying to figure out the flow that allows me to submit feature-based requests, but also use my changes in my project regardless of their acceptance, and my local copy straight after they’ve accepted / rejected them.

Lots to read, but thanks for any help!

Edit: Found this, related article a day after. Doesn’t answer to the complexity of my question, but still useful: http://codeigniter.com/news/contribution_guide#When:13:36:15Z

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:44:18+00:00Added an answer on May 25, 2026 at 7:44 pm

    The submodule part complicates things a bit, but otherwise:

    • 9: pull? you would push your two feature branche to your fork (the “isolated clone”), not pull them. That will save those commits on your remote repo.
      And actually, for a pull request, you should push one branch with all the commits you want to propose. See next point.
    • 11: submit pull request: the idea behind a pull request is to propose fast-forward merges for the original project to include.
      So while you need to rebase the commits you want to include in your pull request on top of the branch (for instance master) that the original repo will have to update with your commits. For that, it is recommended to:

      • first pull from the original repo (to make sure master is up-to-date),
      • rebase your feature branches on top of master (again master is an example here) as one new branch (and test if your two new features initially developed in their own branch works together)
      • push that new branch to your fork
      • propose the commits of that new branch as pull request for master

    As commented by koffie, a rebase is possible if you are the only one working on that feature branch (and a push --force is then possible).

    If you want to contribute back to a project, you shouldn’t modify directly the history of commit of the branch you will contribute to: if you want to make a pull request to master of an original repo, you shouldn’t push anything to the master of your fork (except commits coming from a pull from the original repo)
    You should always work in a dedicated branch.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I want to show the soap response to UIWebview.. my soap response is, <p><img
Seemingly simple, but I cannot find anything relevant on the web. What is the
I want to construct a data frame in an Rcpp function, but when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.