Git创建仓库(自己是master)
https://www.jb51.net/LINUXjishu/457371.html
https://www.runoob.com/git/git-tutorial.html
https://edu.csdn.net/skill/gml/gml-62c30f9c31f64a1d96af732c47c93f04
已经介绍的很详细,就不拾人牙慧了。
遇到remote: Support for password authentication was removed on August 13, 2021报错的时候,参考下面的博客:https://blog.csdn.net/qq_41646249/article/details/119777084
Git协作开发(别人是master)
1、git clone https://别人的仓库
2、cd 仓库
进入这个仓库
3、git status
4、git checkout -b <分支名>
下文以dev_my作为分支名
5、git status
6、git branch
7、gedit test2.txt
8、git add test2.txt
9、git commit -m "xxxxx"
10、git remote add dev_my https://自己的github地址
将本地电脑暂存仓库与github仓库关联
11、git remote -v
显示所有远程仓库
12、git push origin dev_my