Jump to content

Get log in git


Guest XEQT

Recommended Posts

I was looking for a command to get the latest log without gitk (Ubuntu text only).

With "git log" you only get the log that is in your tree right now and not in the online tree.

I have seen CIA bots doing it so there should bee a way to do it or is there something i need to program my self to get working ??

// XEQT

Link to comment
Share on other sites

I was looking for a command to get the latest log without gitk (Ubuntu text only).

With "git log" you only get the log that is in your tree right now and not in the online tree.

I have seen CIA bots doing it so there should bee a way to do it or is there something i need to program my self to get working ??

// XEQT

First, do a fetch (download new objects from a remote repository), then simply view the remote branch.

For example:

git fetch origin
git log -3 origin/master

to view latest 3 commits.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use