天天看点

Git文件的线上传输初级领悟Git 仓库导入记录创建一个新仓库已有仓库

Git 仓库导入记录

创建一个新仓库

  1. mkdir a-small-warehouse-for-novices
  2. cd a-small-warehouse-for-novices
  3. git init
  4. touch README.md
  5. git commit-m"first commit"
  6. git romote add origin https://gitee.com/shi-juntong/a-small-warehouse- for-novices.git
  7. git push -u origin master

已有仓库

  1. cd existing_git_repogit remote add origin https://gitee.com/shi-juntong/a-small-warehouse-for-novices.git
  2. git push -u origin master

继续阅读