linux 下git使用教程
2017-07-03 15:51
267 查看
#添加所有新增文件
git add .
#提交所有修改,包括删除,添加,修改
git add -A
git add --all
#查看状态
git status
#添加一个文件
git add readme
git commit -m "add readme"
git push -u origin master
删除文件
git rm test.txt
git commit -m 'remove test.txt'
git push -u origin master
#创建一个dev1分支
git branch dev1
#查看所有分支
git branch -r
git branch
#克隆分支
git clone -b dev1 git@xxx.
4000
com
#切换分支到dev1
git checkout dev1
#合并分支
git merge dev1
#删除一个分支
git branch -b dev1
git add .
#提交所有修改,包括删除,添加,修改
git add -A
git add --all
#查看状态
git status
#添加一个文件
git add readme
git commit -m "add readme"
git push -u origin master
删除文件
git rm test.txt
git commit -m 'remove test.txt'
git push -u origin master
#创建一个dev1分支
git branch dev1
#查看所有分支
git branch -r
git branch
#克隆分支
git clone -b dev1 git@xxx.
4000
com
#切换分支到dev1
git checkout dev1
#合并分支
git merge dev1
#删除一个分支
git branch -b dev1
相关文章推荐
- linux下git工具使用 和 Git 中文教程
- linux 中git使用教程
- linux下git安装使用新手教程。
- Linux git版本管理的使用/git教程
- git使用教程(linux平台)
- linux教程:Git使用基础篇
- Linux 简单 git 使用教程
- Linux git版本管理的使用/git教程
- linux 下git使用教程
- linux教程:Git使用基础篇
- linux教程:Git使用技巧篇
- linux系统下 git 使用教程
- 小白学Linux之git工具的使用
- Linux上安装7zip使用教程及zip中文文件名解压乱码解决方法。
- Unix&Linux大学教程: 12 使用shell:变量和选项
- 腾讯Linux QQ安装、使用教程
- 使用GIT管理自己的源代码图文教程
- 使用 WinSCP 管理 Linux VPS/服务器上的文件 图文教程
- Linux上vi(vim)编辑器使用教程
- 教程:在Linux下使用firesheep插件