Git Branch Error: Resolve GitHub Branch Error


When GitHub Branch you created on the local machine gives you errors, this might happen when you develop and push your local branch to a remote repository, then the branch gets modified on another computer. When you pull the branch and merge, the error happens.

Solution:

  1. Create a new branch on a local machine
  2. Make sure there are no other application consuming the repository (Other clients like IDE, Other Git Client like GitKraken)
  3. Make your initial commit to make sure all files are committed to the staging area (git has a staging area, find out about it)
  4. After step 3, type: git reset --hard (This command will take you back to the last commit you made in case other files have been generated or tracked)
  5. Then do: git pull origin yourRemoteBranch

Git
published
v.0.01




For peering opportunity Autonomouse System Number: AS401345 Custom Software Development at ErnesTech Email AddressContact: [email protected]