git 的命令
来源:互联网 发布:db2命令行执行sql文件 编辑:程序博客网 时间:2024/06/07 08:53
git help #可查看git的常用命令git config --global user.name "Your Name Here" #设置commit的署名git config --global user.email "your_email@example.com" #设置commit的emailgit config [--local|--global|--system] --list/-l #查看本地的global信息git config [--local|--global|--system] --unset[-all] user.name #删除user.name信息。如果user.name对应多个值,可用unset-all来删除git remote add XXX https://github.com/username/repo_name.git #设置github的连接
git clone git://github.com/your_account/aimed_repo.git #复制一个repo到本地
git remote -v #查看本地设置的url连接信息
git status #查看当前工作的
branch git branch #查看本地所有的
branch git branch -a #查看远程的所有分支
git branch -d branch_name #删除本地branch_name这一分支
git push origin --delete branch_name #删除名为branch_name的远程分支
git checkout branch_name #切换到名为branch_name的分支上
git chechout -b branch_name #在本地新建一个名为branch_nam的分支
git diff test_branch_name #查看当前branch与test_branch_name中代码的区别
git mv filename newfilename #文件重命名
git push XXX branch_name #上传指定的branch到远端
git pull #将远程上的版本与本地版本进行合并,相当于get fetch + git merge
git reset --hard #将刚才进行的git pull所进行的操作取消,恢复本地版本合并前的原貌
0 0
- git的使用 git命令
- 【git】常用的git命令
- 常用的git命令
- git常用的命令
- Git的所有命令
- git的命令
- git常用的命令
- 常用的git命令
- git的重要命令
- 常用的Git命令
- 常见的git命令
- Git的命令
- Git的一些命令
- git常用的命令
- git命令的使用
- git命令的使用
- 常用的Git命令
- 常用的git命令
- 在 hyperledger fabric 环境对Validating Peers布署 chaincode (智能合约)
- 算法-递归算法
- 关于程序员的笑话
- 山东理工1834答案
- HDU 1015 Safecracker ( DFS )
- git 的命令
- Hadoop-Impala十大优化系列之(1)—分区表优化-8个方法让分区最优化
- Java高并发程序设计
- 对于连接后,需要打开浏览器输入用户名密码才能上网的WIFI,不跳转的解决方法
- 个人学习总结
- 微软发布VSBT:无需安装Visual Studio即可实现项目编译
- C# 传入引用类型的参数 返回值是否发生变化
- UVALive 7529
- for循环语句