git 实战
来源:互联网 发布:武林外传 知乎精华 编辑:程序博客网 时间:2024/05/21 22:43
1、放弃本地的所有修改,强制更新为版本去的代码
git fetch --all
git reset --hard origin/master
git pull
2、删除所有缓存内容
git reset HEAD
3、设置大小写敏感
git config core.ignorecase false
4、分支操作
创建分支 git branch branchname
查看所有分支 git branch -a
查看远程分支 git branch -r
查看本地分支 git branch
切换分支 git checkout branchname
重命名分支 git branch -m | -M oldbranch newbranch
删除branchname分支 git branch -d | -D branchname
删除远程branchname分支 git branch -d -r branchname 或者 git push origin :branchname
推送分支 git push origin branchname
查看当前分支远程地址 git remote -v
0 0
- git实战
- git 实战
- git 实战
- git实战
- Git实战
- Git(二)-Git实战操练
- Git(十四)、Git实战
- git(十六) git rebase 实战
- git项目实战
- git实战记录
- Git 操作实战示例
- Git实战篇
- git实战杂记
- pycharm git merge实战
- git svn 实战
- git 回滚实战
- git revert实战
- Git命令实战总结
- 【自考】——数据结构☞时间复杂度&平均查找长度
- strncpy的实现
- HDU 1231最大连续子序列dp入门
- Hdu1408 盐水的故事
- 【Java Web】control character in cookie value orattribute
- git 实战
- oracle sql 杂(待整理)
- 在表单中动态生成n多的商品属性,然后一起提交,想在商品对象中定义一个属性数组来接收属性,怎么办?
- 神经网络入门
- strncat的实现
- 和云计算、虚拟化相关的几个概念的粗浅理解
- 1002. 写出这个数 (20)——stack
- 少走弯路的十条忠告
- Android Socket编程的基类编写