Step 1: Create a git repository, CD it to your local project root directory, and run the git command

Step 2: Add all the files for your project to the repository

Git add. Step 3: Commit the add file to the repository

Git commit -m: create your Repository on Github.

Click the Clone or Download button and copy the url [email protected]:***/test.git that pops up. Use SSH instead of HTTPS, as shown in the image above

Step 5: Associate the local repository with Github – place the address copied from the previous step below

Git remote add origin [email protected]:***/test.git remote add origin [email protected]:***/test.git

Git pull origin master step 7 upload the code to github remote repository

git push -u origin master