git配置
Git安装完成之后,需要进行一些基本信息设置
-
设置用户名
git config --global user.name ‘xxxt’ -
设置用户名邮箱
git config --global user.email 'ixxx@‘xxxt.com’ -
查看设置
git config --list
修改后
4.修改配置文件,免用户名密码,权限等操作
vi .git/config
#将
[remote “origin”]
url = https://github.com/用户名/仓库名.git
修改为:
[remote “origin”]
url = https://用户名:密码@github.com/用户名/仓库名.git
git从本地到远程的提交流程
1.在工作区提交到暂存区
2.在暂存区提交到本地仓库
3.从本地仓库提交到远程仓库
对应代码:
1.git add xxx.xxx
2.git commit -m ‘提交描述’’
3.git push
其他代码:
git init//初始化git
git clone ‘下载地址’//下载到本地
git status //查看状态
github相关概念
Repository//仓库
用来存储数据的地方
Star//收藏
可以收藏别人的项目,方便下次查看
Fork//克隆
把别人的项目克隆到自己的仓库,克隆后在自己的项目上会看到它的作者。而且自己仓库克隆后的项目是独立的,它的修改,不会影响作者的项目。
Pull Request//发送请求
如果想要影响作者的项目,可以在本地修改后,Pull Request发送请求。
Watch//关注
关注别人的项目后,当项目更新可以接收到通知
Issue//事务卡片
可以通过issue和作者联系,提建议等。
著名公司的开源项目
阿里 https://github.com/alibaba
腾讯 https://github.com/AlloyTeam
百度 https://github.com/baidufe
Google:https://github.com/google
苹果:https://github.com/apple
Facebook:https://github.com/facebook
Twitter:https://github.com/twitter
微软:https://github.com/microsoft
Square:https://github.com/square