1、同步远程仓库代码:git pull
2、查看当前状态:git status
3 、提交代码到本地缓存区:git add . (提交全部代码)或者got add 文件名1 文件名2 ....(提交部分代码)
4、推送代码到本地got库:git push
5、提交代码到远程仓库:git pull
本文介绍了Git中常用的五项操作,包括同步远程仓库代码、查看当前状态、提交代码到本地缓存区、推送代码到本地Git库以及提交代码到远程仓库。通过这些基本命令的学习,可以帮助开发者更好地管理和协同代码。
1、同步远程仓库代码:git pull
2、查看当前状态:git status
3 、提交代码到本地缓存区:git add . (提交全部代码)或者got add 文件名1 文件名2 ....(提交部分代码)
4、推送代码到本地got库:git push
5、提交代码到远程仓库:git pull
395
7972
754
3387
4509