AGamePlayer
AGamePlayer

Reputation: 7736

How do I see a file's all historical version on Gitlab?

First I thought this is a very simple issue. But after trying a lot of ways, I couldn't find a way to explore a file's all history versions on gitlab.com

What should I do?

Thanks,

Upvotes: 10

Views: 17491

Answers (4)

Ben Trono
Ben Trono

Reputation: 79

To view a previous version of a document:

  1. go to the file in gitlab.
  2. choose the 'History' tab.This will show the commit history of the file.
  3. on the far right of the commit you'd like to go back to, you can select a little folder icon that is labeled 'Browse File'. Choose this to view the entire file state for the commit.The icon is next to the commit hash ID. enter image description here

Upvotes: 3

Arvind
Arvind

Reputation: 49

Follow these steps :-

  1. Open your project on gitlab.
  2. Click on repository.
  3. Click on files
  4. Go to Find File search box on the right side and search for filename.
  5. Click on history tab, list of all commits on that file will be there.

Snapshots for reference is here

Upvotes: 2

Vincent
Vincent

Reputation: 164

That's not directly in gitLab but I guess it's totaly what's you need. You can have the state of one file at each commit in visual code with GitLens widget.

see more : VS Code tips — Viewing file history with GitLens : https://www.youtube.com/watch?v=bRdQw4-sGIY

Upvotes: 1

makozaki
makozaki

Reputation: 4366

Get file history, from UI after you click on file content you can click on History button in upper right corner.

Upvotes: 3

Related Questions