怎么找开源项目
https://github.com/trending
https://github.com/521xueweihan/HelloGitHub
https://github.com/ruanyf/weekly
https://www.zhihu.com/column/mm-fe
常用前缀后缀
·找百科大全awesome xxx
找例子xxx sample
找空项目架子x starter/xxx boilerplate
·找教程xx tutorial
提交代码到暂存区
Git add -A or git add .
常用指令
Git commit -m "提交信息"
Git log //查看修改日志
Git reset commitID // 回到哪一个版本
Git status //查看状态
Git branch 名字//创建分支
Git checkout 名字//进入分支
Git merge 分支//合并
添加远程仓库
Git remote add origin ssh地址 //origin约定熟成
查看是否添加成功
Git remote
git remote -v
把本地仓库推上去
Git push origin master //master分支名
配置ssh公钥
生成ssh公钥
Ssh-keygen -t rsa
不断回车
获取公钥
Cat ~/.ssh/id_rsa.pub
验证是否配置成功
Ssh -T git@gitee.com
标签
git tag
列出已有的标签
git tag [name]
创建标签
git push [shortName][name]
将标签推送至远程仓库
git checkout-b[branch][name]检出标签