This is pretty basic, but the user interface does not make obvious what to do. I did not use SourceTree much.
There is only a "master" branch. A file has a conflict on a single line. Trying to do either a Pull or a Merge shows the file, with two versions of the line (with + and - signs). Now what? I want to tell SourceTree to just pull the updated file from the repository, but how can I do that?
Not sure how this got marked as "bitbucket-server", will try to ask again in the SourceTree topic.
In any case, I do not have a messed-up file, and selecting "reject hunks" (what does that really mean?), produces a .rej file with this content:
diff a/css/service.css b/css/service.css (rejected hunks)
@@ -1,6 +1,6 @@
body {
- background-image: url(../image/texture.png);
+ background-image: url(../image/texture_simple.png);
background-size: 100% 100%;
background-attachment: fixed;
}
Not too sure what "command line" you are talking about, I am a poor Windows 10 user, but would be completely OK running any command line to fix the problem, even under Cygwin. It is weird though, SourceTree is supposed to simplify and make visibile what I am doing, right?
SourceTree doesn't do merge conflicts. You might find this discussion useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jobin, thanks for replying. I have resolved the issue. Summarizing for the benefit of anyone searching for how to handle this type of situation:
I think I have now succeeded in tagging this question as "sourcetree" instead of "bitbucket-server".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SourceTree does not have a merge tool. You can use another merge tool like Meld and configure it to be used with SourceTree. You can do the same thing with command line.
Or you can open it in a simple text editor and resolve it yourself. In any case, merge resolution happens outside the Bitbucket Server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.