git 常用命令
来源:互联网 发布:淘宝店招上怎么加链接 编辑:程序博客网 时间:2024/06/06 16:42
1,从已有的分支创建新的分支(如从master分支),创建一个dev分支并切换过去
git checkout -b dev (git co -b dev)
2,创建完可以查看一下,分支已经切换到dev
git branch (git br )
3,提交该分支到远程仓库
git push origin dev
4.Git操作之克隆某一个特定的远程分支
git clone -b <branch> <remote_repo> 例如: git clone -b 指定的分支名字 远程服务器的地址
git checkout 分支的名字
Git暂存管理
git stash # 暂存
git stash list # 列所有stash
git stash apply # 恢复暂存的内容
git stash drop # 删除暂存区
0 0
- git 常用命令
- Git常用命令
- git 常用命令
- git 常用命令
- git 常用命令
- git 常用命令
- GIT常用命令
- git 常用命令
- git 常用命令
- Git 常用命令
- git 常用命令
- Git常用命令
- Git常用命令
- git 常用命令
- Git 常用命令
- git常用命令
- git 常用命令
- Git 常用命令
- 【参考消息】微服务介绍
- (转)字符串 4位1空格 银行卡账号格式
- xcode8 每次enter都缩进了一tab,顶行的方法也是
- 20161219
- RT_Thread应用中遇到的各种问题
- git 常用命令
- 数据结构与算法概述及算法分析
- php 递归查询目录的所有文件
- AndroidTrainingCHS学习笔记 -- 代码性能优化建议
- Java基础面试题1
- Python测试环境巡检工具
- UnsatisfiedLinkError && NDK integration is deprecated in the current plugin. AS总so JNILIbs加载问题
- 如何遍历一个实例的所有属性,得到属性的名称和值
- 深入JVM-Class装载系统