git
发布日期:2021-10-23 14:13:24 浏览次数:4 分类:技术文章

本文共 486 字,大约阅读时间需要 1 分钟。

1.查看某个文件是谁修改的,提交人,时间 git blame file_path

2.具体修改详情:git log -p file_path 

 

3.查看基于那个分支:

git log --graph 

 

git log branchname --pretty=oneline --graph

 

git log --oneline --decorate

4.

5.git stash 加入储藏

git stash list 查看所有储藏

git stash apply 应用储藏

git stash apply stash@{1} 应用储藏1 

git stash apply 相关的操作不删除储藏中的记录

git stash pop 与 apply 用法类似,区别 pop 会把储藏中的记录删除

6. 拉取其他分支的某些文件到当前分支

git checkout 
[
]

 

转载于:https://www.cnblogs.com/Running00/p/9752354.html

转载地址:https://blog.csdn.net/weixin_30588827/article/details/98985800 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:TypeScript path mapping 编译后出现Cannot find module的问题
下一篇:前后台JSON传值得一个问题和异常处理net.sf.json.JSONException: Unquotted string '"name"'...

发表评论

最新留言

表示我来过!
[***.240.166.169]2024年03月31日 21时53分19秒