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

  • Home
  • SEARCH
  • 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 7505113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:48:02+00:00 2026-05-29T21:48:02+00:00

I have what I believe is a very common scenario: I clone a development

  • 0

I have what I believe is a very common scenario:

  • I clone a development branch of an open source project.
  • I then create a branch called mychanges, where I add some code to the project.

Now all I wish to do is be able to update the development branch so it reflects the latest development version, but at the same time be able to keep my changes.

How can this be achieved?

I made the following test:

  • Created a notes.txt on a master
  • Branched to mychanges and checkout it out
  • Added a line
  • Merged to master
  • Deleted the line in the version on master
  • Now the master has a version without the added line, the mychanges branch has it with, but if I try to merge mychanges to the master again git says ‘Already up-to-date’.

Also reports conflict if I merge the development branch to the mychanges one

Thanks!

  • 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-29T21:48:04+00:00Added an answer on May 29, 2026 at 9:48 pm

    Now the master has a version without the added line, the mychanges branch has it with, but if I try to merge mychanges to the master again git says ‘Already up-to-date’.

    This is because the branch mychanges is behind your master branch. That is, master contains all the changes that occured in mychanges.

    Also reports conflict if I merge the development branch to the mychanges one

    Having a conflict while merging two differing branches is normal; it just means that the two branches have different, conflicting changes in them, and that the merge cannot be automatically completed. I would guess that you’ve edited a file that is on the development branch, and that git is unable to work out if you want to keep the changes from branch development or mychanges.

    Now all I wish to do is be able to update the development branch so it reflects the latest development version, but at the same time be able to keep my changes.

    When git is unable to automatically merge, (that is, it is unable to determine which changes to a file to keep and which to discard in the merge), you can select the changes yourself, then re-merge the branches. This lets you select which changes you want; if you want the changes that were from the development branch, you can keep them. If, however, you have changed the same lines of code that were changed on development, you may want to keep those instead.

    You should read the progit book, specifically chapter three, which will teach you about branches and, in chapter 3-6, rebasing your changes on top of the new changes from development.

    The progit book is a great source of information about using git, and it will probably answer some of your questions.

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

Sidebar

Related Questions

I believe I have a very common problem that affects developers with multiple versions
I have a very strange bug, which I believe is caused by some code
I have a very common use case. The user needs to enter their address
I believe I have a very interesting problem to solve. I've a XML something
Hi I'm very new to android development, and want to create an app with
I believe I have disabled the view state on all controls as well as
I believe I have a potential threading issue. I have a user control that
I believe I have found a weird bug as follow: I want to delete
I have what I believe is a killer idea for an application. By definition,
This is staight forward I believe: I have a table with 30,000 rows. When

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.