Uploading items to GitHub
after creation, start committing the local project code :
Check the VCS selected button in the diagram :
then select the Add button in the src point :
Errors that may occur
Tip error Message: Fatal:remote origin already exists. The solution is as follows:
Then enter git remote add origin [email protected]:codegeekgao/test.git
Git push-u Origin Master
The following error is then reported:
! [rejected] master -> master (fetch first)error: failed to push some refs to '[email protected]:qzmly100/repository-.git'hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushinghint: to the same ref. You may want to first integrate the remote changeshint: (e.g., 'git pull ...') before pushing again.hint: See the 'Note about fast-forwards' in 'git push --help' for details.
This is because:
A commit that does not exist in a local branch on a remote branch is often a problem encountered during a multi-person collaborative development process, and can be a fetch and merge, which is pull, which merges the commits on the remote branch into the local branch and then push.
If you are sure that those commits are not needed on the remote branch, then direct GIT push Origin master-f, forcing the local branch to overwrite the remote branch.
Uploading items to GitHub