Contents

常用git命令

ssh克隆

  • git clone ssh://git@[host]:[port]/path/xxx.git

bash

  • 查找历史命令 : ctrl + r

access_token登录

  • 查看远程链接:git remote show
  • 移除原来的远程链接: git remote remove origin
  • 重新新增git远程链接: git remote add origin https://<your token>@github.com/<your account>/<your repository>.git