<html>
<body>
<h4>复习知识</h4>
<pre>
git init
git add hello.txt
git commit -m "add hello.txt"
git status
git diff hello.txt
</pre>
<h4>远程仓库</h4>
<pre>
ssh-keygen -t rsa -C "xiaomeng@hust.edu.cn"
添加公钥
添加远程仓库
关联远程仓库
git remote add origin https://
取消关联
git remote rm origin
推送到远程
git push -u origin master
//第一次推送加上-u
git push origin master
</pre>
</body>
</html>
<body>
<h4>复习知识</h4>
<pre>
git init
git add hello.txt
git commit -m "add hello.txt"
git status
git diff hello.txt
</pre>
<h4>远程仓库</h4>
<pre>
ssh-keygen -t rsa -C "xiaomeng@hust.edu.cn"
添加公钥
添加远程仓库
关联远程仓库
git remote add origin https://
取消关联
git remote rm origin
推送到远程
git push -u origin master
//第一次推送加上-u
git push origin master
</pre>
</body>
</html>
本文介绍 Git 的基本使用方法,包括初始化仓库、添加文件、提交更改等本地操作,以及 SSH 密钥生成、远程仓库关联与推送等远程仓库管理技巧。

被折叠的 条评论
为什么被折叠?



