Git简单应用

Git的简单应用(2)

2016-12-05  本文已影响19人  qin7zhen

创建自己Git密钥

SSH key提供了一种与 GitHub 通信的方式,通过这种方式,能够在不输入密码的情况下,将GitHub作为自己的remote端服务器,进行版本控制。

cd ~/.ssh

查询系统中是否已经存在SSH密钥。

ssh-keygen -t rsa -C “<email-address>”

输入你的邮件地址,生成对应的密钥文件:id_rsa 和 id_rsa.pub。
最后,id_rsa.pub文件中的内容就是你添加到Github中的SSH密钥内容啦。

将Git连接到你的Github吧

git remote add origin <remote-repository-url>

让你的Github关联上issue

提交的commit的时候,如果你在commit message中使用了#issue, 比如#8, Github就会自动关联issue 8跟这个commit。

git commit -m 'Issue #[issue number] by [username]: [Short summary of the change].'

Reference

充分了解 Git 并入手单人开发
Github上面怎么关联issue跟关闭issue

上一篇 下一篇

猜你喜欢

热点阅读