Skip to content

Not a developer question but regular github user, keeping tools updated? #23337

Discussion options

You must be logged in to vote

In principle merge conflicts happen when both you and the upstream repository have changed the same files, in ways that can’t be automatically resolved. You will have to take some kind of manual steps to resolve that. In priciple your current approach of copying your files over a fresh clone does that, too: Keep your changes, discard any remote changes to those files.

The git way to handle this would be to use branches: Create a branch for your changes and commit them to that branch. That way you get to manage your changes with git. When upstream has changes you want you then have two options:

  1. Merge the upstream branch (e.g. master) into your branch.
  2. Rebase your branch onto the updated…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants