Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

resolve git conflicts github button disabled

git pull origin main


// long answer

I know this is little old post. But putting my answer as I also faced the same issue and I could solve it using following.

As shown in screenshot attached, you can solve this on your local using command line.

Fetch the branch which has conflicts. (say master branch)
Checkout to that branch.
Pull the code from another branch you want to merge it into. (Take a pull from develop into master )
OR Rebase the branch as: checkout to develop branch, then take pull into it git pull origin develop. Then checkout to master branch and do git rebase develop.
Now resolve the conflicts, add the changed files, commit it, push onto the branch you want to merge it into (in this case master ). It might happen that you don't have permission to do it. In that case you can push this branch on your fork, and then raise PR to main repo)
There is one more method.

Using GitHub Desktop. Just that, it is not available for linux from official site. For this you can check this link. Read the instructions in the README doc and install it accordingly.

And you can find the method to solve the conflicts using GitHub Desktop here.
Comment

PREVIOUS NEXT
Code Example
Shell :: command to install apache 
Shell :: size apache 
Shell :: git reset head 2 commits 
Shell :: npm steps 
Shell :: xrandr 
Shell :: bash string before substring 
Shell :: git track lfs 
Shell :: error: cannot list snaps: cannot communicate with server: Get "http://localhost/v2/snaps": dial unix /run/snapd.socket: connect: no such file or directory 
Shell :: bash create symlinks 
Shell :: change git default branch 
Shell :: who create git 
Shell :: how to grep if the first letter is a character not a number 
Shell :: how to unstash git stash 
Shell :: npm Error: EACCES: permission denied, scandir 
Shell :: How to remove files from new gitignore file 
Shell :: access windows files on wsl 
Shell :: add an existing user account to a group 
Shell :: artix linux 
Shell :: ssh timeout option 
Shell :: connect ps4 controller to pc linux 
Shell :: django load data 
Shell :: alpine sudo 
Shell :: getting started with vite 
Shell :: install kubectl 
Shell :: git log graph oneline 
Shell :: revert back to a commit git 
Shell :: How to export a GPG private key to a file 
Shell :: git config credential.helper cache 
Shell :: cli check what is listening on port 
Shell :: docker interact with running container 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =