Jerin
Jerin

Reputation: 737

In git the Files that I haven't changed are automatically committed

First I run git merge master for new code in my branch then I run the command git status which shows that I have committed many files which I didn't touch. Not sure if it happened due to using linux ubuntu. How can I solve it I have tried to git merge --abort and tried again facing the same issue.

enter image description here enter image description here

Upvotes: 0

Views: 31

Answers (1)

Filippo
Filippo

Reputation: 126

When a merge process has conflicts, Git asks you to solve them as you can see after git merge master. You can use a mergetool or you can solve them manually inside the code where lines have conflicts.

Upvotes: 2

Related Questions