平时本身有一些本地的项目想把它们放到github上去,就须要关联一下。git
在本地想放到github上的项目的根文件夹执行git init。github
在github上新建一个仓库Repository,获得仓库地址。好比https://github.com/MR-yuhuash...spa
本地项目根文件夹执行:code
git remote add origin https://github.com/MR-yuhuashi/jest-nuts.git
关联以后,就能够进行拉取远程代码和提交本地代码到远程等等操做啦
好比ip
git pull origin master git add . git commit -m 'first commit' git push