Popular blog tags

git:如何使用git从github拉取自己的私有仓库然后再push 提交

Published

If the repository already exists on a remote, you would choose to git clone and not git init

Enabling a git clone consists of 2 steps:

首先要获取token

查看带token的远程私有仓库

git remote -v
git config -l

1.使用git从github拉取自己的私有仓库(Token方式、本地秘钥方式)

git clone https://user:TOKEN@https://github.com/xxxx/xxxx
git clone https://github-username:[email protected]/username/project.git

2.git push

changed files