1

I have been experiencing the following problem when updating a local repository with PULL operation in GIT .I work on local files.Then some team member which works from remote submits the updated version to the remote master.I pull it then, to update and merge with my local stuff.After this I usually get notifications about conflicts etc.I do add -A ,commit -a and when I look into local files ,only those that I worked on, I can see git database meta tags like HEAD >>>>>>>>>>> and commit number appear inline (php classes)and make the whole file corrupted .I thought it was something related to permissions (working on UBUNTU ).So I opened the whole permission to all files (chmod -R 777) .But still getting this issue.Once again ,it happens only with those local files which I modified.Being a noob with GIT and Linux would appreciate any helpful input on the subject. Thanks.

Michael IV
  • 9,816
  • 11
  • 78
  • 189
  • As everyone said these are conflict markers. You should also ceck out git mergetool and a good merge tool such as meld, kdiff3, kompare, ordiffuse. There are lots of others so find one you like. – asm Aug 08 '11 at 10:56

2 Answers2

5

These are conflict markers - git uses them to indicate where your local changes conflicted with those pulled from the repository. See how to merge git conflicts

Community
  • 1
  • 1
Frank Schmitt
  • 27,865
  • 9
  • 65
  • 100
4

That isn't junk, those are the conflicts that you were warned about.

Because there were two separate edits to the same part of the same file, the files couldn't be merged automatically. You need to manually resolve the conflicts and then check the properly merged versions in.

Quentin
  • 800,325
  • 104
  • 1,079
  • 1,205