EN
Hard reset with pull is not working - git merge conflict (modify/delete/content merge)
1 answers
1 points
I have got task to make code review and I am newbies in git.
After I made git pull
I got some conflicts.
Console:
xxxxxxxxxx
1
dony@ubuntu-pc:/home/dony/Projects/open-library$ git pull
2
Removing src/pages/login.tsx
3
Removing src/modules/login/test/index.test.tsx
4
CONFLICT (modify/delete): src/modules/login/index.tsx deleted in 95deb238d766586cee8780d54b6f13931d06f5ba and modified in HEAD. Version HEAD of src/modules/login/index.tsx left in tree.
5
Removing src/components/table.tsx
6
Auto-merging src/layout/mainLayout.tsx
7
CONFLICT (content): Merge conflict in src/layout/mainLayout.tsx
8
Automatic merge failed; fix conflicts and then commit the result.
9
dony@ubuntu-pc:/home/dony/Projects/open-library$
As I suppose it happened becasue someone changed git history.
I have created this branch and after first push, job was continued by some member from my team.
I have tried to make git clean -fd
with git reset --hard
and later git pull
again but it is not working. Conflicts are there still.
1 answer
2 points
If you want to reset all repository to remote state run following commands:
xxxxxxxxxx
1
git fetch --all
2
git reset --hard origin/your_local_branch_name
And chack it now with:
xxxxxxxxxx
1
git pull
Problen was describeed here too.
0 commentsShow commentsAdd comment