How to upload projects to Github, Gitee using Git

my blog

start

  1. Download Git Bash
  2. Select the folder you want to upload to GitHub, right-click and select Git Bash Here

img

Then enter the Git Bash interface

img

initialization

 git init
复制代码

Add all files to the repository

 git add .
复制代码

Note: add a space and a "." after add, there is no mistake here!

img

like this it worked

Connect to remote repository

 git remote add origin 仓库地址
复制代码

Commit the added file to the repository

 git commit -m "注释语句"
复制代码

"Comment Statements": An introduction to comments on projects/files

img

It's O98K like this

submit

Finally, go straight to the submission!

 git push origin master
复制代码

img

Submit like this successfully! Check it out on GitHub.

Guess you like

Origin juejin.im/post/7101562832268820493