git 使用整理
git stash
参考:
https://www.cnblogs.com/tocy/p/git-stash-reference.html
不断添加中。。。。。。。。。。。。
git cherry-pick
git cherry-pick可以理解为”挑拣”提交,它会获取某一个分支的单笔提交,并作为一个新的提交引入到你当前分支上。 当我们需要在本地合入其他分支的提交时,如果我们不想对整个分支进行合并,而是只想将某一次提交合入到本地当前分支上,那么在当前分支中执行git cherry-pick 提交id。
git show
查看某个提交的修改内容
查看某个文件的修改内容
git blame
查看历史修改
git reflog
git log 只能查看从HEAD节点开始之前的提交,git reflog 可以查看在所有的在本地的提交。
git reflog一般用来恢复某些错误操作。这些错误操作丢失了之前的提交。
添加远程仓库
git remote add github git@github.com:imchaoyu/note.git
git remote add gitee git@gitee.com:chaoyu91/note.git