现在的位置: 首页 > 综合 > 正文

Mac Git简单使用手册

2013年12月08日 ⁄ 综合 ⁄ 共 393字 ⁄ 字号 评论关闭
Mac Git简单使用手册
 
Git简单使用手册
1.安装git  www.2cto.com  
怎么安装git自行查阅资料
2.配置git
3.新建项目并初始化git库
$ cd $WORK      //$WORK为项目根目录
$ git init           //执行初始化
成功时会提示Initialized empty Git repository in $WORK/.git/
3.添加不需要提交的中间编译文件等  www.2cto.com  
$ cd $WORK
$ echo "bin" > .gitignore
$ git add .
4.commit项目
$ cd $WORK
$ git commit -am "init project"
5.配置remote
$ cd $WORK
$ git remote add origin git@172.168.0.1/git/android/project.git
6.提交到服务器
$ cd $WORK
$ git push origin master

抱歉!评论已关闭.