服務端建立倉庫:
1.git init --bare project1.git
客戶端:
1.git clone root@ip:/git倉庫路徑
2.git conf ig user.name "user1"
git config user.email "[email protected]"
3.echo "create file" > file
4.git add file
5.git commit -m "create file" file
6.git push origin master
7.git pull 更新
8.git checkout -b develop 創建分支並且切換到develop分支