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 6582511
In Process

The Archive Base Latest Questions

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

I am new to git and adjusting my workflow from SVN. The biggest problem

  • 0

I am new to git and adjusting my workflow from SVN. The biggest problem I have is if I want to make a pull request into the master repo controlled by the project maintainer I have all these commits that I don’t want.

here is the steps I’ve been taking

git checkout develop
git fetch upstream
git merge upstream/develop

Modify file

git add /file
git commit file -m "some commit"
git push origin develop

Then on github make the pull request. Now when I make a pull request rather than it saying 1 commit 1 file its like 24 commits and has all these other people’s commits from upstream. What additional steps do I need to add or remove from my workflow that will allow me to just submit a pull request for the one file I need.

  • 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-25T16:17:21+00:00Added an answer on May 25, 2026 at 4:17 pm

    Try this workflow instead:

    1. git fetch upstream
    2. git checkout -b new_branch upstream/develop (creates a new branch and puts you on it)
    3. Modify the files you want to change.
    4. git add <files>
    5. git commit -m "some message"
    6. git push origin new_branch

    Also, is the upstream’s main branch the develop branch? Usually the main branch is named master. If you’re basing your changes off a branch other than the main branch, pull requests might show any commits that are in the other branch but not the main one.

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

Sidebar

Related Questions

We have a new git repo that is acrued from a svn repo. The
I am new to git, and have a subversion repository that I want to
I have just created a new Git repository backed by Subversion, using git svn.
New to Git. I already have git installed from another company I worked at.
I am fairly new to Git and I am moving from SVN. I am
I'm testing my new Git repository. I converted from Subversion to Git, no problem.
new git user here. I want to use git, but i'm in an SVN
I'm pretty new to Git. Right now I only have a master branch for
I am new to Git and I seem to have one branch too many
I've looked at git-new-workdir, but I don't want the history to be shared because

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.