如何使用github和tower
2011-09-22 16:06
1266 查看
1,使用github
第一步 在https://github.com/上注册一个账号
第二步 根据http://help.github.com/mac-set-up-git/在本地的bash(终端)进行相应设置
第三步 使用一下常见的指令
git remote add origin git@github.com:haiye1110/matt.git
git push -u origin master
git init--------建立仓库
git 命令 --help-----------查看帮助命令
touch filename
git status------查看状态
git add filename--------加入文件到临时的东东
git commit -m "add the file filename" -----commit到仓库中
git log------查看日志
echo "ddd" > filename ------修改filename(先清空)
git add filename
git commit -m "filename changed"
git diff 版本一 版本二--------比较不同
git reset 版本号--------返回到版本号
git revert 版本号--------撤销到版本号
git checkout filename------撤销当下没有git add的动作
git branch-------参看分支信息
git branch develop-----建立分支
git checkout develop-----切换分支
git merge develop------合并分支(将develop merge到master上,develop不变)
2. 使用tower(git的一种客户端工具mac os)
第一步 在https://github.com/上注册一个账号
第二步 根据http://help.github.com/mac-set-up-git/在本地的bash(终端)进行相应设置
第三步 使用一下常见的指令
git remote add origin git@github.com:haiye1110/matt.git
git push -u origin master
git init--------建立仓库
git 命令 --help-----------查看帮助命令
touch filename
git status------查看状态
git add filename--------加入文件到临时的东东
git commit -m "add the file filename" -----commit到仓库中
git log------查看日志
echo "ddd" > filename ------修改filename(先清空)
git add filename
git commit -m "filename changed"
git diff 版本一 版本二--------比较不同
git reset 版本号--------返回到版本号
git revert 版本号--------撤销到版本号
git checkout filename------撤销当下没有git add的动作
git branch-------参看分支信息
git branch develop-----建立分支
git checkout develop-----切换分支
git merge develop------合并分支(将develop merge到master上,develop不变)
2. 使用tower(git的一种客户端工具mac os)
* open the software--tower * click "Repositories/manage repositories" * click "creat github repository" * fill up "the project name" " description" "username" "password(checkout <use API token…>)" then click "create" * right click the master(HEAD) select "pull to" * click "remote"select "origin",then fill "remote branch"as"master"
相关文章推荐
- Android Studio中如何使用Git和Github来管理项目
- Mac下教你如何使用Github客户端开源项目
- 如何使用Git上传项目代码到github
- 梳理--如何使用GitHub管理自己的代码
- Android Studio如何使用Git提交代码到GitHub和OsChina并解决冲突
- 如何将自己在github写的android library开源,让大家依赖使用。。。。。。
- 如何使用github?github简单使用教程(转自http://blog.sina.com.cn/dashanliu)
- VS2015下如何使用Github的教程
- 如何使用git简单方便的将本地项目上传到github
- Android Studio中如何使用Git和Github来管理项目
- 关于新手如何使用Git上传项目代码到github
- 教你如何快速使用Github
- 如何使用命令行在github搭建项目?
- 如何使用Git 下载GitHub的东西
- 如何高效使用github
- 如何使用Git上传项目代码到github
- 团队各成员如何使用GitHub共同编辑文档?
- 如何使用Github DeskTop客户端以及简单的git指令托管代码到github
- 如何使用github
- 实用篇如何使用github(本地、远程)满足基本需求