How to Resolve GitHub Related Problems

The article contains solutions to a variety of issues that may arise while using the GitHub platform.

All of the examples in this article require the GIT and GitHub Desktop to be installed on your machine.

Unable to upload or download files

You are unable to upload or download the files to or from the GitHub repository with the GitHub Desktop tool?

Run a CLI tool (shell, cmd, Powershell, etc.) with admin rights.

Execute the command in the CLI window:

git config --global http.schannelCheckRevoke false

After finishing the task, restart GitHub Desktop.

You expect to see “lost” files.

Unable to merge unrelated histories in this repository

You are unable to proceed with GitHub Desktop after receiving the message “Unable to merge unrelated histories”.

Make sure last version of the Git is installed.

Run a CLI tool (shell, cmd, Powershell, etc.) with admin rights.

Enter the commands:

git fetch --all

git reset --hard origin/master

The git fetch downloads the latest from remote without trying to merge or rebase anything.

The git reset command restores the master branch to the state it was in before you fetched it. The –hard option changes all the files in your working tree to match the files in origin/master

If you wish to resolve a different branch, execute the command:

git reset --hard origin/<branch_name>

How to add a collaborator to the team

You own a team on the GitHub platform, and you want to add a collaborator to your team.

Enter the GitHub project repository.

Find the tab Settings:

GitHub tab Settings

Note: If you are unable to see the Settings tab, you must increase your project’s access level.

Click on the menu item Collaborators on the left sidebar:

GitHub Collaborators

You expect to see the Add Collaborator dialog window:

Add Collaborator

Enter the collaborator’s username (email) in the text field.

Wait until GitHub finds the collaborator’s account and enables the button Add <user> to this repository.

Click on the button Add <user> to this repository .

The number of collaborators you can add to the team is limited by the number of seats available. GitHub may offer to purchase additional seats.


Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *