git命令:
1、git checkout -b 分支名字:创建并切换分支
2、git checkout 分支名字:切换分支
3、git branch:查看所有分支
3、git status:查看状态
4、git stash:将改动暂存
5、git stash pop:将暂存的修改释放最后一个
6、git rebase:一般开发分支用这个命令合并代码
7、git cherry-pick hash-id:将某一次commit的修改合并
8、git add . :将文件添加到暂存区
9、git commit:提交代码
10、将分支合并到主分支:先将所在分支切换到主分支,再运行git merge 分支名字
11、git push:将更新后的代码更新到云端
在github中快速查找开源项目进行学习:
in:name example :名字中有“example”
in:readme example : readme中有“example”
in:description example : 描述中有“example”
stars:>1000:star数量大于1000
forks:>1000:fork数量大于1000
pushed:>2019-09-01:2019年9月1日后有更新的
language:java:用Java编写的项目