1、进入上传文件夹: git init
2、git add .
3、git commit -m "first commit"
4、git remote add origin https://github.com/Deepcong2019/face_recognition.git
5、git pull origin master --allow-unrelated-histories
6、git remote set-url origin https://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@github.com/Deepcong2019/yolov4_cong.git
7、git push -u origin master
已经上传到git的本地文件夹,只需要:
git add xxx.py yyy.py
git commit -m "修改了xxx"
git push origin master
本文详细介绍了如何使用Git进行项目管理,包括初始化仓库、添加文件、提交更改、远程仓库配置及推送等核心步骤,适合初学者快速上手。
933

被折叠的 条评论
为什么被折叠?



