conflict

How do you see / show a git merge conflict resolution that was done, given a merge commit SHA1?

本秂侑毒 提交于 2019-11-30 04:32:10
When you resolve a conflict, then stage the changes, then do a git diff, it shows you two columns of +'s and -'s, one for "ours" and one for "theirs". Given a merge commit in a repo's git history, how do I see that resolution, which was done by someone else? In other instances, I've seen it before (in gitk, I think), but I can't seem to determine it for this SHA1 that I have. micromoses If you know the ref, then git show <MERGE_COMMIT> will show you the resolution done (if any) for the merge commit. For log, use git log -p -c or git log -p --cc . From the manpage of git log: -c With this

Git resolve conflict using --ours/--theirs for all files

不羁岁月 提交于 2019-11-29 18:54:39
Is there a way to resolve conflict for all files using checkout --ours and --theirs ? I know that you can do it for individual files but couldn't find a way to do it for all. Just grep through the working directory and send the output through the xargs command: grep -lr '<<<<<<<' . | xargs git checkout --ours or grep -lr '<<<<<<<' . | xargs git checkout --theirs How this works: grep will search through every file in the current directory (the . ) and subdirectories recursively (the -r flag) looking for conflict markers (the string '<<<<<<<') the -l or --files-with-matches flag causes grep to

JQuery conflict with an other JQuery library

杀马特。学长 韩版系。学妹 提交于 2019-11-29 18:16:30
问题 I use jquery for a module. My joomla template have an integrated jquery menu. So they conflict with each other. Is there a way to solve this problem. Following the script code of the module <script type="text/javascript" charset="utf-8"> window.onload = function () { var container = jQuery('div.sliderGallery'); var ul = jQuery('ul', container); var itemsWidth = ul.innerWidth() - container.outerWidth(); jQuery('.slider', container).slider({ min: 0, max: itemsWidth, handle: '.handle', stop:

How to fix Prototype conflict with Highchart?

一世执手 提交于 2019-11-29 16:45:03
I have an AJAX action and trying to use Highchart at the same time that's why I need Prototype to be included. Here is my code but is not showing the Highchart graph: <script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7/prototype.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <script src="http://code.highcharts.com/highcharts.js"></script> <div id="contain" style="min-width: 310px; height: 400px; margin: 0 auto"></div> Here is the information: http://jsfiddle.net/dhdSL/4/ Of course is working 100% without Prototype: http:/

Subversion - Always resolve conflicts using mine for a set of files

ⅰ亾dé卋堺 提交于 2019-11-29 08:49:44
问题 We've got a sizable chunk of auto-generated code that we keep around in subversion. Sometimes I'm working on a piece of the generator while another coworker is working on a different piece of the generator. One of us checks in, and the other gets the latest. Now our generated code is in conflict. Because it's generated it'll be correct after the next time the generator is run, but subversion has flagged it as conflicted. It's a bit of a pain to go around, find these conflicts, verify that

How can I find out which Git commits cause conflicts?

∥☆過路亽.° 提交于 2019-11-29 06:21:11
问题 I'm merging upstream changes to my project, and recently there were a lot of commits that created a lot of merge conflicts. It doesn't make sense to try to resolve them all at once. How can I find out which commits create a conflict? Any of the following are acceptable: A way to make Git stop merging as soon as it finds a conflict A way to make Git list all the commits that conflicted, in chronological order Anything else that lets me resolve the conflicts one-by-one, in chronological order,

The operation could not be performed because “PROJECTNAME” has one or more tree conflicts

和自甴很熟 提交于 2019-11-29 05:31:34
I am using Git and when I tried to pull a newer development branch with my current branch using XCode's source control menu I received this error message: The operation could not be performed because "ProjectName" has one or more tree conflicts. How do I resolve these tree conflicts? Thanks GayleDDS There is a conflict in the project file you need to pull using the command line or a GUI tool like SourceTree (Free) and manually resolve the conflict in a text editor or diff tool. See also: How to use Git properly with XCode? I was in trouble with this problem. It often happens when I remove or

How to use two versions of jar in my java project

旧城冷巷雨未停 提交于 2019-11-29 02:20:30
In my java project, I need to use neo4j-1.9.3 that depends on lucene-3.6.2 , and ElasticSearch which depends on lucene-4.4.0 . I know that if I want to use two versions of lucene directly, I can use ClassLoader to load different classes from the lucenes. But the problem is that I won't use lucene's apis directly now. Is there any way that lucene-3.6.2 can be loaded when neo4j's apis are running, and lucene-4.4.0 can be loaded while running elasticsearch's apis. The two versions of lucene conflict now, and I need to run neo4j and elasticsearch in one project. How could I solve the dependency

Is it possible to always (force) overwrite local changes when updating from SVN? Ignore conflicts?

早过忘川 提交于 2019-11-29 02:01:36
问题 I know I should be working on a branch of my own but a couple of us are on the same branch of a project. One of the Dev's made a commit and I just wanted to update my local copy with the latest from SVN. Running 'svn update' I get this output: Restored 'index.html' U somescript.php Conflict discovered in file.xml'. Select: (p) postpone, (df) diff-full, (e) edit, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: Is there an option/way to overwrite my local changes and get the

How do you see / show a git merge conflict resolution that was done, given a merge commit SHA1?

删除回忆录丶 提交于 2019-11-29 01:48:26
问题 When you resolve a conflict, then stage the changes, then do a git diff, it shows you two columns of +'s and -'s, one for "ours" and one for "theirs". Given a merge commit in a repo's git history, how do I see that resolution, which was done by someone else? In other instances, I've seen it before (in gitk, I think), but I can't seem to determine it for this SHA1 that I have. 回答1: If you know the ref, then git show <MERGE_COMMIT> will show you the resolution done (if any) for the merge commit