
进入共享文件夹目录

在本地创建ssh key
ssh-keygen -t rsa -C"your_email@youremail.com" //创建SSH
cat ~/.ssh/id rsa.pub //填写ssh密钥


git clone xxx

cd xxx

git branch test

gba

git remote -v

git remote add upstream xxx

git fetch upstream //从远程获取版本upstream

git rebase upstream/master

git checkout test

vim a.py

git add a.py
git status
git commit -m "add: a.py"

git push upstream test

git pull --rebase upstream master

git checkout master
git branch -d test

原文:https://www.cnblogs.com/chenstudy/p/14749255.html