“中国人的github”猛击Trustie官网,開始代码托管...
1. 新建项目
2. 项目配置信息
3. 加入组员信息,以方便于协同开发。共享编程
4. 新建版本号库
4.1创建页面
4.2版本号库填写必要信息,请记住password,后面提交代码须要输入
5. 本地创建目录,存放代码
6. 提交代码的方法,方法一:使用github官方client
6.1使用githua官方client
6.2 Githubclient操作流程:
l 使用例如以下命令
git init #初始化本地仓库
git remote add trustie http://macover_projectv1@repository.trustie.net/macover/projectv1.git
git add README
git commit -m "提交README文件
git config http.postBuffer 524288000 #设置本地post缓存为500MB,能够不用运行
git push -u trustie master
l 操作例如以下图所看到的
6.3使用的命令例如以下。站点上直接显示
6.4提交成功后站点能够看到提交信息
7. 提交代码的方法,方法二:使用msysgit工具
7.1 windows下安装 Git client http://msysgit.github.io/
7.2使用例如以下命令配置
$git config --global user.name “your_name”
$git config --global user.email “your_email”
注:Name和Email是用来设置自己的username和联系方式的(user.name和user.email必须填写,这些将在版本号库提交时用到, 当中的name和email要和forge.trustie.net上的登陆名和password保持一致 ,方便代码贡献统计)。
7.3使用例如以下命令将本地仓库与远程仓库同步
$git remote addtrustie http://macover_projectv1@repository.trustie.net/macover/projectv1.git
$git pull trustie master
注:gitpull操作会提示输入用户在站点上创建版本号库时的密钥。用于控制仅仅有组员才干提交代码
7.4代码提交命令与github使用命令一致