useful git command

作者: 蓝色瓦力 | 来源:发表于2016-07-10 11:04 被阅读20次

1、如何获取某个文件的特定版本

git show HASH:file/path/name.ext > some_new_name.ext

获取另一个分支的文件
git show <branch_name>:path/to/file >path/to/local/file

2、如何比较同一个文件的不同分支

git diff dev master -- my.java

相关文章

网友评论

    本文标题:useful git command

    本文链接:https://www.haomeiwen.com/subject/cmddjttx.html