Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to retrieve git pull history

Tags:

git

Whenever I git pulled from remote repo into my local repo, did Git store the information of WHEN I pull? Can I see the log of pulls that I did in my local repo?

like image 359
jason Avatar asked Nov 16 '17 04:11

jason


People also ask

How do I pull up git history?

Git file History provides information about the commit history associated with a file. To use it: Go to your project's Repository > Files. In the upper right corner, select History.

How do I see last git pull?

As suggested by user: https://stackoverflow.com/users/83646/smoove, you can find when git pull was last called on the repo by checking the modification timestamp of: . git/FETCH_HEAD as: git writes the . git/FETCH_HEAD file every time you pull or fetch, even if there was nothing to pull.

Does git download all history?

Use git pull --unshallow and it will download the entire commit history.

How do I revert a git pullback?

There is no command to explicitly undo the git pull command. The alternative is to use git reset, which reverts a repository back to a previous commit. We're working on a project called ck-git. A collaborator has just pushed a commit to the remote version of the project that is stored on GitHub.


1 Answers

You can try and see the content of your git reflog... but that will be limited in time (90 days by default)

vonc@VONCAVN7 D:\git\git
> git reflog --date=iso|grep pull
3ec7d702a HEAD@{2017-09-10 17:42:57 +0200}: pull --no-commit origin master: Fast-forward
b3622a4ee HEAD@{2017-08-12 10:36:08 +0200}: pull: Fast-forward
97e2ff464 HEAD@{2017-06-17 18:43:28 +0200}: pull: Fast-forward
8d1b10321 HEAD@{2017-06-08 20:36:08 +0200}: pull: Fast-forward
10c78a162 HEAD@{2017-05-21 21:22:58 +0200}: pull: Fast-forward
b06d36431 HEAD@{2017-05-14 07:36:49 +0200}: pull: checkout b06d3643105c8758ed019125a4399cb7efdcce2c
1d1bdafd6 HEAD@{2016-12-22 00:36:52 +0100}: pull --no-commit origin master: checkout 1d1bdafd64266e5ee3bd46c6965228f32e4022ea
3ab228137 HEAD@{2016-11-12 08:25:02 +0100}: pull: checkout 3ab228137f980ff72dbdf5064a877d07bec76df9
2632c897f HEAD@{2016-08-20 21:52:51 +0200}: pull: checkout 2632c897f74b1cc9b5533f467da459b9ec725538
2376d3178 HEAD@{2016-08-13 09:19:54 +0200}: pull: checkout 2376d31787760af598db23bb3982a57419854e5c
f8f7adce9 HEAD@{2016-07-31 13:34:44 +0200}: pull: checkout f8f7adce9fc50a11a764d57815602dcb818d1816
ab7797dbe HEAD@{2016-06-22 11:53:20 +0200}: pull: checkout ab7797dbe95fff38d9265869ea367020046db118
like image 71
VonC Avatar answered Sep 21 '22 15:09

VonC