Primary understanding of online transmission of Git files

Git warehouse import records

Create a new warehouse

  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

Existing warehouse

  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

Guess you like

Origin blog.csdn.net/weixin_51713652/article/details/109261104