vscode和github同步流程

对于github和vscode的同步,我们需要两个仓库,第一个是github上的项目的地址,第二个就是本地的仓库,

第一部我们注册在github上注册一个账号,然后新建一个项目,这个时候会生成对应的url地址eg:[email protected]:1eagle/onlinetranslate.git

这个时候我们需要在本地使用命令, git init创建一个仓库,也可以在代码的根目录使用git init ,接下来我们使用 git add, 添加代码到缓冲区,git commit 提交代码,在使用命令git remote add origin [email protected]:1eagle/onlinetranslate.git将本地仓库和远程端连接起来,最后使用git push origin master就可以推送到远程了。

你可能感兴趣的:(vscode和github同步流程)