git-log

Administration of GIT server. Track the process of repository cloning

瘦欲@ 提交于 2020-01-02 05:43:08
问题 How track the process of repository cloning on GIT server? I need information about who and when have cloned the repository. Furthermore where can I find the information about how much new repository were made and who did they on the server? It needs for making statistic. 回答1: As mentioned in this SO question: Cloning is a read-only operation, the original repository isn't modified. There is no way you can pull statistics for data that simply isn't tracked. This isn't entirely true, however,

Meaning of git log --oneline --graph output

孤街浪徒 提交于 2020-01-02 03:34:29
问题 I'm learning about relative commit references and trying to understand the following git log --oneline --graph output provided in a lesson. In the lesson it says that given HEAD points to the 9ec05ca commit, HEAD^^^ (meaning the great-grandparent commit) is the 0c5975a commit. But it seems to me 4c9749e should be the great grandparent, if each SHA is a direct descendant of the one below it. Any clarification appreciated. 回答1: Commit can have more than one parent. ^ 1 means first parent. ^2

How to avoid showing parent commits in gitk when filtering by author?

こ雲淡風輕ζ 提交于 2020-01-01 06:11:36
问题 I want to show only my commits in gitk. I try to use the command gitk --author="Eugeniy Maksimov" <path> gitk shows not only my commits, but also theirs parents. Why? How to avoid this? 来源: https://stackoverflow.com/questions/49219779/how-to-avoid-showing-parent-commits-in-gitk-when-filtering-by-author

How do I pass a range of commits to git log?

独自空忆成欢 提交于 2019-12-31 06:43:28
问题 Ok I give up, I am a Bash noob. This: $ git log --no-walk --oneline 6980e6ecede8e188f434f6da669c2297f28decfe 458567536c1f20498da033cb0e42da74439ef12e prints: 4585675 NNN bethDataFiles, allBethFiles belong to game/game/constants.py 6980e6e NNN bethDataFiles, allBethFiles belong to game/game/constants.py This: git log -g --pretty=format:'%ai %H' | awk '$0 >= "2016-04-13" && $0 <= "2016-04-15"'| cut -d' ' -f 4 | awk '!a[$0]++' | tr '\n' ' ' prints me a range of commits:

Recreate Git Ref after Fatal Error

眉间皱痕 提交于 2019-12-31 00:55:12
问题 I recently had to perform a hard reboot and I am now receiving an error in git when I try to access a specific branch (this does not happen when accessing other branches): $git checkout branchName fatal: failed to read object ebca165c3ec7ecd7124f41983dd264e4e1dc0125: Invalid argument The problem is similar to the one described here: How to restore a corrupted git repository?, but differs in the fact that I am not currently on that branch to perform git status . Also, if I call git reflog I

How can I print the log for a branch other than the current one?

空扰寡人 提交于 2019-12-30 00:12:24
问题 I'm on a branch with some changes. Changing branch is a pain as some files are locked by processes, so to change branch I'd have to stop all the processes which have locks, then stash the changes before checking out the other branch to see its log. Is it possible to view the log for a different branch, without having to check it out? 回答1: TL; DR Use git log <branch> where <branch> is the name of the branch of interest. From the git-log man-page... A simplified version of the git-log synopsis

Git log history simplification, elaborations example in git log's manual

白昼怎懂夜的黑 提交于 2019-12-24 15:33:18
问题 All of you comfortable with example and elaborations in git log's help for history simplification? I encounter some burdens on understanding when using this help/manual and the named example. .-A---M---N---O---P---Q / / / / / / I B C D E Y \ / / / / / `-------------' X I is the initial commit... foo exists with contents “asdf”, and a file quux exists with contents “quux”.... In A, foo contains just “foo”... B contains the same change as A... C does not change foo, but its merge N changes it

Why does git lose a commit from log after merge?

烈酒焚心 提交于 2019-12-24 09:24:08
问题 I'm trying to merge a development branch into master. But it seems to undo a commit that was made in master, to the extent that the particular commit no longer appears in the file's git log . When I'm on the master branch, I can see commit 2d1b9af on Jul 14 c:\src>git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean c:\src>git log server\Fitnesse\FitNesseRoot\APITest\content.txt commit 88a68b11b273b98531ae686b85b5733b86706bda

git log and git whatchanged allowing duplicate commits

删除回忆录丶 提交于 2019-12-24 08:39:52
问题 The git log and git whatchanged shows 2 commits, but both have same lines added, so where was it removed inbetween so it allwed adding same changes again? I tried the below command, how can there be 2 commits having the same 2 lines added, when there is not a single commit inbetween which show the lines as removed. How to i find what happened to this file, inbetween these 2 commit? git log --stat --follow -p at_Objects/AtResctrCase.cpp commit 914f8e87cb88e2923ed089a579d69cfa21ae0bc4 at

git log revision range gives incorrect range of commits

和自甴很熟 提交于 2019-12-23 21:04:32
问题 I am trying to use list all commits within a given range on a branch using the argument of git log . For some reason it doesn't seem to be giving me the right result (or maybe I'm understanding the command wrong?). Here's the steps for what I'm doing: Clone the repo git clone https://github.com/openstack/nova.git Do git log and these are the last 9 commits: d5bde44 Merge "Make metadata password routines use Instance object" 6cbc9ee Merge "Fix object change detection" 39b7875 Merge "Fix object