拷贝代码库
git clone [代码库地址]
例:git clone https://github.com/pallets/flask向仓库添加提交文件
- 添加文件
git add [file name] - 将文件提交到仓库
git commint -m “description”
例: git add hello_world.c
git commit -m “对该文件的形容”
- 添加文件
查看本地代码的状况
git status查看日志
git log更新仓库的代码
git push
Git 常用命令使用
最新推荐文章于 2024-08-09 14:43:40 发布