标签:ctrl ted libz style xxx ctr mina class hit
1.安装Git
$ apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev $ apt-get install git $ git --version
ssh-keygen -t rsa -C "xxxxx@xxxxx.com"
按照提示完成三次回车,即可生成 ssh key。通过查看 ~/.ssh/id_rsa.pub
文件内容,获取到你的 public key
cat ~/.ssh/id_rsa.pub
添加后,在终端(Terminal)中输入
ssh -T git@gitee.com
首次使用需要确认并添加主机到本机SSH可信列表。若返回 Hi XXX! You‘ve successfully authenticated, but Gitee.com does not provide shell access.
内容,则证明添加成功。
2.推送项目(进入你想要推送的文件夹)
git init git status git add . git commit -m ‘注释信息‘ git remote add origin ssh (这里的ssh是你的仓库的ssh) git pull origin master --allow-unrelated-histories Ctrl X 离开 git push origin master
标签:ctrl ted libz style xxx ctr mina class hit
原文地址:https://www.cnblogs.com/nanamiyi/p/12737010.html