1、xshell和xftp安装
1、下载地址
家庭/学校免费 - NetSarang Websitehttps://www.xshell.com/zh/free-for-home-school/2、填写邮箱和姓名之后,会给邮箱发下载链接。最后根据地址下载安装即可。
2、压缩解压软件
3、gitee使用教程
1、安装
(1)git下载:
官网下载,可能会很慢:https://git-scm.com/download/win
window国内镜像下载:https://registry.npmmirror.com/binary.html?path=git-for-windows/
(2)TortoiseGit是一个开放的git版本控制系统的源客户端:https://tortoisegit.org/download/ ,顺便下载中文语言包。
以下步骤可先不配置,等克隆项目时也会让填写用户名和密码等信息。
(3)配置用户名和邮箱
修改用户名
git config --global user.name "xxxx(新的用户名)"
修改邮箱
git config --global user.email "xxxx@xxx.com(新的邮箱)"
(4)生成ssh密钥
输入 cd ~/.ssh进入ssh,如果.ssh文件夹不存在,执行指令自动创建 mkdir ~/.ssh
然后再进入cd ~/.ssh
生成生成RSA密钥对:ssh-keygen -t rsa -C “邮箱”
查看对应公钥内容:cat ~/.ssh/id_rsa.pub
(5)将生成的公钥配置到图片所示位置:
2、使用
1、克隆
2、提交和推送
新建一个test.txt文件,在目录下右键空白处,选择git提交
3、拉取
在每次提交之前,先拉取一下。如果b同学提交了后,我们再提交的话会导致冲突。
4、修改.gitignore之后,如何生效?
git rm -r --cached . #清除缓存
git add . #重新trace file
git commit -m "update .gitignore" #提交和注释
git push origin master #可选,如果需要同步到remote上的话