git push found remote repository address error
Issue: Project upload always uploads to a wrong repository address first and then to the current repository address
Reason: Due to not understanding git, set git’s globalconfig adding a default path in global settings, causing every upload to upload to the global path first, resulting in an error.
Solution
Use command git remote -v to see that there is always an origin existing. Use git remote rm origin to delete but found that this path cannot be deleted.
Call command git config --global --list, can find that two origin addresses appeared in global configuration and local configuration.
It seems that we set a repository address in the global variable, causing every upload to upload to this address first, so we need to delete this address.
Enter command ~/.gitconfig, in the popped up editor delete [remote 'origin'] to delete all paths, upload again to upload according to local current remote address.



