git

来源:互联网 发布:要开淘宝网店怎么弄 编辑:程序博客网 时间:2024/06/06 10:01

Git 的使用

推送至github

创建.gitignore文件。里面内容

node_modules ..

提交到本地仓库

  • git init
  • git add -A
  • git commit -m “(string)”

创建远程仓库

  • 在github上登陆
  • 创建一个新的项目,请特别注意 一定不要勾选Initialize this repository with a README 前面的复选框
  • 也不要去下拉框里选择 .gitignore 或license
  • 要保持默认,直接点击 Create repository

推送到远程仓库

   git push -u origin master
0 0
原创粉丝点击