Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save macrotea/11309944 to your computer and use it in GitHub Desktop.
Save macrotea/11309944 to your computer and use it in GitHub Desktop.
提交本地项目文件到github的操作命令
在github上创建一个库: https://github.com/macrotea/nodejs-bower
进入本地文件夹: ndoejs-bower,然后提交本地文件到远程库的命令如下:
D:\workspace\javascript\nodejs-bower>git init
D:\workspace\javascript\nodejs-bower>git add .
D:\workspace\javascript\nodejs-bower>git commit -m "init"
D:\workspace\javascript\nodejs-bower>git remote add origin https://github.com/macrotea/nodejs-bower
D:\workspace\javascript\nodejs-bower>git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment