1. git init
  2. # 添加所有文件
  3. git add -A .
  4. git commit -m ''
  5. git status
  6. # 配置用户名密码
  7. git config --global user.name jxch
  8. git config --global user.password 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
  9. git config --global user.email "15553598935@163.com"
  10. # 输入的用户名密码将被记住,不用每次都输入了
  11. git config --global credential.helper store

本地代码共享到GitHub

  1. # 先在GitHub上建立一个仓库,然后共享到这个仓库
  2. git remote add origin https://github.com/jxch/jupyterlab.git
  3. git branch -M main
  4. # 密码用 token
  5. git push -u origin main