Pierre
Pierre

Reputation: 47

How can I do to fetch the commit when I do a git pull?

I did a lot of commits like git pull origin namebranch

But the problem is that I need to do an history of the commits is for a date in the past. Is there a log file when I do a git pull origin namebranch that exists ?

Thank you very much !

Upvotes: 0

Views: 31

Answers (1)

LuVu
LuVu

Reputation: 1088

The git log command enables you to display a list of all of the commits on your current branch after you have created several commits, or if you have cloned a repository with an existing commit history.

It is also possible to format the git log if you are looking for more specific/cleaner information.

For more information on how to format the git log: https://redpanthers.co/git-log-formating-output/

Upvotes: 1

Related Questions