您的位置:首页 > 其它

Mac Git简单使用手册

2013-08-29 11:39 246 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: