Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 4

GIT LOG last commit objects

Scenarion: i have an object t1.txt file edited by me 3 times .

objects 2 t2.txt edited and committed  by user 1 and user 2 .

All this committed happened with JIRa ni - E.h JIRA -123 

 

git log --objects -i --oneline --grep "TW-67025" --name-only --pretty=format:#%an#

 

If I run above query I getting a result but multiple times.

 

result :

user1

Dir1/t1.txt

user1

Dir/t1.txt

user2

dir1/t2.txt

user1

dir/t2.txt

 

 

I would like to get last updated user , like below 

 

user1

Dir1/t1.txt   ( last updated)

 

user2

dir1/t2.txt   ( user1 first committed, later user 2 committed. so expecting user 2 )

 

 

Any idea what i need to do 

 

 

 

3 Replies
Moderator
Message 2 of 4

Re: GIT LOG last commit objects

Hello @avijit1804 

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the 'How to use Git and Github' board. No action is needed on your part; you can continue the conversation as normal here.

Let me know if you have any other questions or if I can help with anything else.

Greatly appreciated,

-MChevy422

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Community Manager
Message 3 of 4

Re: GIT LOG last commit objects

Thanks for being here! Have you attempted:

 

git log --reflog

 


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Highlighted
Community Manager
Message 4 of 4

Re: GIT LOG last commit objects

Thanks for being here! Have you attempted:

 

git log --reflog

 


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!