修改了git使用方法
This commit is contained in:
parent
55499db0ab
commit
939da70402
|
@ -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;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
@ -73,7 +82,8 @@ body table tr td span5 {
|
|||
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><p> </p>
|
||||
<p><span6>Windows</span6></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="900" border="0">
|
||||
|
@ -273,11 +283,59 @@ body table tr td span5 {
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="901" border="0">
|
||||
<tr>
|
||||
<td width="895"><span6>Linux</span6></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
<td><span1>1、安装</span1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>如果你用的是Linux,你可以用你的本地包管理系统(native package management system)来安装。</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span>$ yum install git-core </span> </p>
|
||||
<p>在redhat等系统下用yum</p>
|
||||
<p><span>$apt-get install git-core</span></p>
|
||||
<p>在debian,ubuntu等系统下用apt-get</p></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span1>2、配置</span1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p ><span>$git config --global user.name “your_name”</span></p>
|
||||
<p><span>$git config --global user.email “your_email” </span> </p>
|
||||
<p>Name和Email是用来设置自己的用户名和联系方式的(user.name和user.email必须填写,这些将在版本库提交时用到,
|
||||
<span5> 其中的name和email要和forge.trustie.net上的登陆名和密码保持一致</span5>
|
||||
,方便代码贡献统计 )。</p></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span1>3、代码提交方法</span1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p>cd file1</p>
|
||||
<p><span>$ git add file1</span></p>
|
||||
<p><span>$ git init</span></p>
|
||||
<p><span>$ git commit -a</span></p>
|
||||
<p><span>$ git remote add [name] [版本库里给的URL(去掉http)]</span></p>
|
||||
<p><span>$ git push [name] master</span></p>
|
||||
<p>输入password后即可上传。</p></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p> </p>
|
||||
<table width="831" border="0">
|
||||
<tr>
|
||||
<td width="825" align="right">——Trustie团队</td>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
@ -72,6 +82,11 @@ body table tr td p span5 {
|
|||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
<td><span6>Windows</span6></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
|
@ -265,9 +280,54 @@ body table tr td p span5 {
|
|||
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><span6>Linux</span6></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
<td><span1>1.Installation</span1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p>If you are useing Linux, you can install git through native package management system.</p>
|
||||
<p><span>$ yum install git-core</span></p>
|
||||
<p>if you are using redhat, you should type "yum".</p>
|
||||
<p><span>$apt-get install git-core</span></p>
|
||||
<p>if you are using debian or ubuntu, you should type "apt-get".</p></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span1>2. Configuration</span1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span>$git config --global user.name “your_name”M</span></p>
|
||||
<p><span>$git config --global user.email “your_email”</span> </p>
|
||||
<p>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,
|
||||
<span5> the name and email must be the same with login name and email you registed in the forge.trustie.net</span5>
|
||||
). </p></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="900" border="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span1>3. How to commit</span1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p>cd file1</p>
|
||||
<p><span>$ git add file1</span></p>
|
||||
<p><span>$ git init</span></p>
|
||||
<p><span>$ git commit -a</span></p>
|
||||
<p><span>$ git remote add [name] [The URL which we give you in our website(with out http)]</span></p>
|
||||
<p><span>$ git push [name] master</span></p>
|
||||
<p>The last step is enter your password. </p></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p> </p>
|
||||
<table width="831" border="0">
|
||||
<tr>
|
||||
<td width="825" align="right">—— By Trustie Team</td>
|
||||
|
|
Loading…
Reference in New Issue