Search code examples
javagithubgitlabgit-shell

How to resolve conflict in GitLab using GitShell or GitHub Desktop


I am pretty new to GitLab because we just moved to it from ClearCase. I Cannot merge some changes into my remote then to my local repo because the GitHub Desktop says that there are some conflicts. I have been looking around to find a simple solution for this in order to view the conflicting file. I got quite a few changes in my local too so I don't want to play around too much with the unfamiliar Git commands because I don't want to loose any of my changes. Is there simple way to find out which file is causing the conflict. I used git status and it says that my local branch is up to date.

I am a little lost. Can someone give me some hints.

Thanks


Solution

  • If i understood correctly then

    Is there simple way to find out which file is causing the conflict?

    Then try this command git ls-files -u will give a list of conflicts from Git.

    Also you want to save your local changes then use git stash if you don’t want to do a commit of half-done work and you can get back to this point later by using git stash apply