多用户操作git“远程仓库“(本地)
生活随笔
收集整理的這篇文章主要介紹了
多用户操作git“远程仓库“(本地)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
設置本地遠程倉庫
-
準備遠程倉庫文件
cd ~/git-repo.git -
初始化
git init --shared -
修改git的接收配置
git config receive.denyCurrentBranch ignore -
初始化git倉庫
git config user.email "fxm@fxm.com" git config user.name "fxm" git add . git commit -m "init"
本地多用戶配置
-
創建目錄
mkdir ~/data/1 cd ~/data/1 git clone ~/git-repo.git/ cd git-repo/ -
創建用戶
git config user.email "root@root.com" git config user.name "root"
總結
以上是生活随笔為你收集整理的多用户操作git“远程仓库“(本地)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 人民币国际支付份额升至2.4%,创5年新
- 下一篇: 有信用卡就能贷款的APP 2017信用卡