Solution is as follows: 1, first enter the $ git remote rm origin (delete the associated origin of the remote repository) 2, re-enter the $ git remote add origin [email protected]: ( github name) / (git project name) .git on not being given! 3, if you enter $ git remote rm origin is still being given anything, error:. Could not remove config section 'remote.origin' We need to modify the contents of the file gitconfig 4, find the installation path of your github, find a file named gitconfig of , open it to the inside of the [remote "origin"] delete the line just fine!