how to resolve conflict with git after autoformat in Eclipse? -
we have 2 users working on same class files in 2 separate git branches.
user nothing else "autoformat" ctrl-sift-f in eclipse
user b adds space in comment
now "conflicting change" , can't merge anymore.
basically stuck because of autoformat.
how resolve situation in eclipse git or on command line git bash?
resolve conflict merge conflict. sounds pretty simple conflict resolve. or since changes trivial, person doing merge (i.e. person hasn't pushed commit) can reset common commit, allowing them pull other person's changes.
git reset --hard thecommitid^
where thecommitid
unwanted formatting change. if it's recent commit can use head^
.
Comments
Post a Comment