create a new repository on the command line
echo “# eegRudp” >> README.md
git init
git add README.md
git commit -m “first commit”
git branch -M main
git remote add origin https://github.com/EEGWIFI/eegRudp.git
git push -u origin main
push an existing repository from the command line
连接远程仓库
git remote add origin https://github.com/EEGWIFI/eegRudp.git
分支重命名
git branch -M main
新建分支
git branch -b main
git push -u origin main
一般切换远程分支比较麻烦,这里使用小乌龟:
选择相应的远程分支