From 939da7040253422ba620d32f3c66651bd60231e4 Mon Sep 17 00:00:00 2001 From: baiyu Date: Wed, 4 Sep 2013 22:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86git=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/git_usage/ch_usage.html.erb | 60 ++++++++++++++++++++++++- app/views/git_usage/en_usage.html.erb | 64 ++++++++++++++++++++++++++- 2 files changed, 121 insertions(+), 3 deletions(-) diff --git a/app/views/git_usage/ch_usage.html.erb b/app/views/git_usage/ch_usage.html.erb index 9ca7de9ec..f2937be17 100644 --- a/app/views/git_usage/ch_usage.html.erb +++ b/app/views/git_usage/ch_usage.html.erb @@ -56,6 +56,15 @@ body table tr td span5 { body table tr td span5 { font-weight: bold; } +body table tr td p span6 { + color: #33F; + font-weight: bold; +} +body table tr td span6 { + color: #33F; + font-weight: bold; + font-size: 24px; +} @@ -73,7 +82,8 @@ body table tr td span5 { - +
 

 

+

Windows

@@ -273,11 +283,59 @@ body table tr td span5 {
+ + + + +
Linux
+ + + + + + + + + + +
1、安装
如果你用的是Linux,你可以用你的本地包管理系统(native package management system)来安装。

$ yum install git-core

+

在redhat等系统下用yum

+

$apt-get install git-core

+

在debian,ubuntu等系统下用apt-get

+ + + + + + +
 
2、配置

$git config --global user.name “your_name”

+

$git config --global user.email “your_email” 

+

Name和Email是用来设置自己的用户名和联系方式的(user.name和user.email必须填写,这些将在版本库提交时用到, + 其中的name和email要和forge.trustie.net上的登陆名和密码保持一致 +,方便代码贡献统计 )。

+ + + + + + + + + + +
 
3、代码提交方法

cd file1

+

$ git add file1

+

$ git init

+

$ git commit -a

+

$ git remote add [name] [版本库里给的URL(去掉http)]

+

$ git push [name] master

+

输入password后即可上传。

+

 

diff --git a/app/views/git_usage/en_usage.html.erb b/app/views/git_usage/en_usage.html.erb index e7ea39e53..ce202c792 100644 --- a/app/views/git_usage/en_usage.html.erb +++ b/app/views/git_usage/en_usage.html.erb @@ -30,10 +30,10 @@ body p { body table tr td p { color: #333; font-family: "Comic Sans MS", cursive; + font-weight: normal; } body table tr td table tr td span1 { color: #09c; - font-weight: bold; } body table tr td span1 { color: #09c; @@ -51,6 +51,16 @@ body table tr td p span5 { body table tr td p span5 { font-weight: bold; } +body table tr td table tr td span6 { + color: #33F; + font-weight: bold; + font-size: 24px; +} +body table tr td span6 { + color: #33F; + font-weight: bold; + font-size: 24px; +} @@ -73,6 +83,11 @@ body table tr td p span5 {
——Trustie团队  
+ + + + +
Windows
@@ -265,9 +280,54 @@ body table tr td p span5 {
1. Installation
- +
 Linux
+ + + + + + + +
1.Installation

If you are useing Linux, you can install git through native package management system.

+

$ yum install git-core

+

if you are using redhat, you should type "yum".

+

$apt-get install git-core

+

if you are using debian or ubuntu, you should type "apt-get".

+ + + + + + + + + + +
 
2. Configuration

$git config --global user.name “your_name”M

+

$git config --global user.email “your_email” 

+

User name and email are used to set your own user name and contact information( user.name and user.email must be completed because these will be used when submitting the repository, + the name and email must be the same with login name and email you registed in the forge.trustie.net +).

+ + + + + + + + + + +
 
3. How to commit

cd file1

+

$ git add file1

+

$ git init

+

$ git commit -a

+

$ git remote add [name] [The URL which we give you in our website(with out http)]

+

$ git push [name] master

+

The last step is enter your password.

+

 

—— By Trustie Team