git show --name-only b1e9360d4496452e6b7b9bf81236e6df6bc06bac As you can see, it shows the name of the user who performed the commit including the date and comment. In my case, there aretwo files in the commit:
Git is afree and open sourcedistributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git iseasy to learnand has atiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCa...
--no-commit-id will suppress the ID output of the commit. --name-only will show only the names of the affected files. We can also use --name-status to show the status of the file, whether it is edited, modified, or deleted. -r will go into sub-trees by processing one by one....
(use"git checkout -- <file>..."todiscardchanges in workingdirectory)deleted:Bno changesaddedto commit (use"git add"and/or"git commit -a") $ git commit -am'Remove B'[master db1f9c6] RemoveB1file changed,0insertions(+),0deletions(-) delete mode100644B$ git status Onbranchmaster nothin...
git-show - 显示各种类型的对象 概述 git show[<选项>] [<对象>…] 描述 显示一个或多个对象(Blobs、树、标签和提交)。 对于提交,它显示日志信息和文本差异。并会以一种特殊的格式显示合并提交,就像git diff-tree --cc所产生的信息那样。
Git Large File Storage -在 git 中存储大文件 Git Garbage Collection -优化你的 git repo Git Show -轻松检查任何 git 对象 Git Describe -根据最后一个标签给出可读的名称 Git Tag -在特定点创建版本标签 Git Reflog -列出在回购上所做的所有 git 操作 ...
git show[options]<object>… 描述 显示一个或多个对象(二进制大型对象、树、标签和提交)。 对于提交,它显示日志消息和文本差异。它还以特殊格式显示合并提交git diff-tree --cc。 对于标签,它显示标签消息和引用的对象。 对于树,它显示名称(相当于git ls-tree仅限于 - 名称)。
查看第一父提交的第一父提交 $ git show <commit>~2 # 或者 $ git show <commit>~~ # 查看第一父提交的第一父提交的第一父提交 #(~后面没数字表示一个,数字多大表示多少个,0则表示当前引用) $ git show <commit>~3 # 或者 $ git show <commit>~~~ # 或者混用~和数字 $ git show <commit>~...
Automatic merge failed;fix conflicts and then commit the result.通过git status查看冲突文件。[root@115~~]#git status index.html:needs merge # On branch master # Changed but not updated:#(use"git add <file>..."to update what will be committed)#(use"git checkout -- <file>..."to disca...
我想从一个提交(commit)里移除一个文件 通过下面的方法,从一个提交(commit)里移除一个文件: $ git checkout HEAD^ myfile $ git add -A $ git commit --amend 这将非常有用,当你有一个开放的补丁(open patch),你往上面提交了一个不必要的文件,你需要强推(force push)去更新这个远程补丁。