First right-click Git bash here at the project file location
Create an SSH key locally
" [email protected] "
In order to verify success, enter it under GIT bash:
$ ssh-t [email protected]
In the local users/bear/.ssh, locate the. pub file to copy the key to Github-setting-key. New Inside
Set up username and email, because GitHub will record them every time a commit.
$ git config--global"your name"-global"[email Protected]"
Initialize git:
$ git init
To add a file that needs to be added to git:
$ git Add.
To submit the code to a local directory:
" First upload "
Go to the repository you want to upload add remote address:
$ git Remote add origin [email protected]:yourname/yourrepo.git
Push changes
Your changes are now in the HEAD of the local repository. Execute the following command to commit the changes to the remote repository:
$ GIT push origin master
Ok!!
GitHub Project upload Operation steps