Github:如何从不同的计算机访问相同的存储库

Has*_*ooq 1 git github

我有一个git存储库,我可以从我的机器访问,但我想授予其他机器访问相同存储库的权限(用于推或拉)

所以我不确定我是如何解决它的.

任何suggesstion将不胜感激

nhu*_*uvy 8

(1)你的愿望是Git的默认功能.例如:在第一台计算机中:

git clone https://github.com/donhuvy/personal_finance.git
Run Code Online (Sandbox Code Playgroud)

在第二台电脑:

git clone https://github.com/donhuvy/personal_finance.git
Run Code Online (Sandbox Code Playgroud)


(2)对于Git用户帐户标识,在Git本地存储库中,在第一台计算机中:

git config user.email "donhuvy@hotmail.com"
git config user.name "Do Nhu Vy"
Run Code Online (Sandbox Code Playgroud)

在第二台电脑:

git config user.email "donhuvy@hotmail.com"
git config user.name "Do Nhu Vy"
Run Code Online (Sandbox Code Playgroud)