How to use git to download the code on github to local

  1. cd to a local directory, use the git init command to initialize git

    git init
  2. Add remote code github repository

    //命令:git remote add origin + 远程代码仓库地址
    
    eg:git remote add origin https://github.com/zhangdaiscott/jeecg-boot.git
  3. Download Remote Warehouse Code

    //命令:git clone + 远程代码仓库地址
    eg:git clone https://github.com/zhangdaiscott/jeecg-boot.git

Guess you like

Origin www.cnblogs.com/cnbzys/p/12144715.html