在github上创建新分支
2016-07-15 09:41
302 查看
在github上创建仓库:
Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/BrentHuang/MyRepo.git
git push -u origin master
在本地新建一个分支: git branch Branch1
切换到你的新分支: git checkout Branch1
将新分支发布在github上: git push origin Branch1
在本地删除一个分支: git branch -d Branch1
在github远程端删除一个分支: git push origin :Branch1 (分支名前的冒号代表删除)
直接使用git pull和git push的设置
git branch --set-upstream-to=origin/master master
git branch --set-upstream-to=origin/ThirdParty ThirdParty
git config --global push.default matching
作者:在github上创建新分支
Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/BrentHuang/MyRepo.git
git push -u origin master
在本地新建一个分支: git branch Branch1
切换到你的新分支: git checkout Branch1
将新分支发布在github上: git push origin Branch1
在本地删除一个分支: git branch -d Branch1
在github远程端删除一个分支: git push origin :Branch1 (分支名前的冒号代表删除)
直接使用git pull和git push的设置
git branch --set-upstream-to=origin/master master
git branch --set-upstream-to=origin/ThirdParty ThirdParty
git config --global push.default matching
作者:在github上创建新分支
相关文章推荐
- Boost 15 进程间通信
- 李洪强iOS开发之【零基础学习iOS开发】【02-C语言】07-基本数据类型
- Java-Charset(字符集)
- github常见操作和常见错误!
- MyEclipse 10.x中拓展自动提示功能
- eclipse中debug
- java程序发布之jre篇 java程序打包成exe可执行安装包以便安装程序
- vsftpd配置教程
- 双击jar包出现:could not find the main class .和could not create the java virtual machine.win7/xp解决方法详解
- java打包工具:Ant工具
- JAVA-开发IDE版本
- Java之控制反转和依赖注入
- php5中public,private,protected
- 二叉树的序列化和反序列化(C++) (leetcode)
- 如何用jar命令对java工程进行打包
- 在命令行中运行eclipse中创建的java项目
- java 打包过程及如何使用第三方jar包
- yii下面如何实现文件上传
- 基于JDBC封装的BaseDao(实例代码)
- java源代码分析----jvm.dll装载过程