git - How to remove all changes to a file within a branch - and avoid future merge requirements -
Define "upstream" as an Apache reporter for which the remote was created:
To add GIT remote upstream, https://github.com/apache/spark.git We have a fork repo in which we are creating new files - currently It should not need to merge it over the river.
While we unknowingly earn / push a common file on our repo:
pom.xml
The problem now This is that every time we want to leak upwards:
git rebase upstream / master we merge with pom.xml can do.
Our intention is to completely forget / ignore any of our repo changes in that file - and just use the latest upstream version. We support our changes in that file every time we sync with upstream. Do not want to.
Now, just
git checkout head - pom .xml will not work because our latest version pulls from the local repo .
git rebase -i upstream / master It is not clear how it will help - as there are other changes in the commodity included in pom.xml We need to do we can not only remove that special commitment
So here are the options for this - as much as possible - our changes in pom.xml are complete By mistake in the way. If it was not possible to correct the history of Git, at least we would like to continue to merge the upstream every time to avoid the need to merge that file repeatedly.
Comments
Post a Comment