Skip to content

Unnecessary merge conflicts #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
matthewcburke opened this issue Oct 31, 2012 · 1 comment
Open

Unnecessary merge conflicts #1

matthewcburke opened this issue Oct 31, 2012 · 1 comment

Comments

@matthewcburke
Copy link
Member

A summary:

As I was learning how to use git and github, it took me a while to get the right mix of files in the .gitignore file. Lately, we haven't been ignoring any files, but this was causing confusing merge conflicts with generated files when we hadn't even modified our code.

Where we are now:

I think I have it figured out. The .gitignore now includes a number of generated files (check it out), and I have removed those files from the repository so they are no longer being tracked.

What it means to you:

Next time you merge with the remote develop branch you will likely get merge conflicts with files in the samples/ImageTargets/obj/ folder. I have deleted them, and they are modified on you local repository. The automatic merge will fail, and you'll be tasked with sorting the problem out manually. You should remove conflicting files in the obj/ directory from your local git repository. To do this from the command line, go to your ImageTargets/ folder and enter git rm -r --cached obj/. This will remove said files recursively from the git repository, but leave them in the working tree (they are still there, but not tracked).

Hopefully this works. Everyone give it a try, and we can trouble shoot any challenges at our Monday meeting.

@ejamroz
Copy link

ejamroz commented Nov 1, 2012

Thank you for the detailed explanation. I am pulling and pushing just fine without the need of the command git rm -r --cached obj/, in fact no obj directory even exists anymore once you pull the most current version, so there should not longer be any problems. Nice work Matt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants