git 命令使用
2015-12-03 19:36
323 查看
版权声明:本文为博主原创文章,未经博主允许不得转载。
在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
相关文章推荐
- 有穷的自动机构造
- Asp.net读取AD域信息的方法(一)
- poj 3469 Dual Core CPU 最小割
- 20135207-信息安全系统设计基础第十三周学习总结
- sdut 1008 最大公共字串
- ArrayList利用泛型对象操作
- Spring aop 原始的工作原理的理解
- 数据结构--向量--归并排序
- c3p0.properties
- c语言基础知识
- 分治法:棋盘覆盖
- 关于spring 3.2 @scheduled cron的
- 2015.12.03 命名规范 输入输出 运算符 条件语句 循环语句
- zabbix监控Mongodb
- mysql数据备份恢复详述
- iOS开发之UIButton
- 预编译头文件(stdafx.h)
- JQuery 操作 radio 被坑一例
- 【论文笔记】T-Finder-A Recommender System for Finder Passengers and vacant Taxis
- 02.Django后台和数据库的设计