-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgit.html
More file actions
28 lines (28 loc) · 2.05 KB
/
git.html
File metadata and controls
28 lines (28 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta http-equiv=pragma content=no-cache>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="shortcut icon" href="favicon.ico">
<link rel="bookmark" href="favicon.ico">
<title>Git使用简介</title>
</head>
<body>
<div class="container">
<p><a href="index.html">返回首页</a></p>
<h2 align=center>Git使用简介</h2>
<p>(1)用TortoiseGit创建本地项目</p>
<p>第一次使用,在想要创建项目的文件夹中,右键,选择“Git 克隆...”,则出现:<br>
<a href="image/git01.png"><img src="image/git01.png" width="250" border="1"></a><a href="image/git02.png"><img src="image/git02.png" width="250" border="1"></a><a href="image/git03.png"><img src="image/git03.png" width="250" border="1"></a><a href="image/git04.png"><img src="image/git04.png" width="250" border="1"></a></p>
<p>(2)将原来项目所有文件放到项目文件夹中或修改文件后,右键文件或整个文件夹,选择“Git 提交”,如图,其中日志信息是必填项。<br>
<a href="image/git05.png"><img src="image/git05.png" width="250" border="1"></a><a href="image/git06.png"><img src="image/git06.png" width="250" border="1"></a><a href="image/git07.png"><img src="image/git07.png" width="250" border="1"></a>
<p>(3)提交以后(提交成功,点击推送):<br>
<a href="image/git08.png"><img src="image/git08.png" width="250" border="1"></a><a href="image/git09.png"><img src="image/git09.png" width="250" border="1"></a>
<p>安装上面的TortoiseGit后,里面有个PuttyGen(或者<a href="/software/puttygen.exe">puttygen.exe</a> ),用它来生成密钥(一对两个),私钥自己保存好。公钥放到服务器上后,用脚本自动生成一个私有仓库,并添加到第一个项目中,其他项目添加需要说明一下。</p>
<p></p>
<p><a href="index.html">返回首页</a></p>
<p align="center">© 2016-2026 清风的个人笔记</p>
</div>
</body>
</html>