1.git init 初始化git项目
2.git config --global user.name “your name” 配置本地git用户名
3.git config --global user.email "name@adr"配置本地git邮箱地址
4.git add . 提交当前所有文件到缓冲区
5.git commit -m “message” 提交到repository附带说明信息
6.git branch [banchneme] 建立分支
7.git checkout [banchname] 切换分支
8.git status 查看文件提交状态
9.git push 提交远程仓库
10.git clone [url] 克隆到本地
11.git pull 远程仓库直接下载到workspace
12.git pull origin [banchname] 克隆远程分支
13.git push origin [banchname] 推送本地分支
git常用指令
最新推荐文章于 2024-04-03 14:31:45 发布