[Linux]git and github
Posted tailiang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Linux]git and github相关的知识,希望对你有一定的参考价值。
给自己的git的note
生成ssh
ssh-keygen -t rsa -C 'email'
- 默认生成的在家目录下的.ssh目录下
将生成的ssh的pub版本粘贴到github上
创建自己的工作分支
git checkout -b ubuntu
add and commit
推送到github
git push origin ubuntu
- 代表的是github这个远程的ubuntu分支
Result
以上是关于[Linux]git and github的主要内容,如果未能解决你的问题,请参考以下文章