Questions tagged [tig]

Tig is a text mode git repository browser that additionally can act as a pager for output from various git commands.

Tig is a text mode git repository browser that additionally can act as a pager for output from various git commands.

When browsing repositories, it uses the underlying git commands to present the user with various views, such as summarized revision log and showing the commit with the log message, diffstat, and the diff.

Using it as a pager, it will display input from stdin and colorize it.

Source: Tig: text-mode interface for git

54 questions
3
votes
2 answers

Tig: how to view project from first commit?

Just want to checkout first commit quickly. Now tig sort the commits as latest commit as the first, so it's quite difficult to find first commit and check the project's evaluation.
Yihe
  • 4,094
  • 2
  • 19
  • 21
3
votes
2 answers

How can I save the current tig options into a file

I've made several modifications manually in tig, and I want to store them. How can I save the current set of changed tig options into a file (the ones, that I can toggle using the (o) key in tig) ? (I know about .tigrc, so if there is a way to force…
Dangelov
  • 701
  • 6
  • 14
3
votes
1 answer

How do I use tig to view the diff for a file which is changed but not commited?

In git, it is git diff , but what about in tig? In tig, in the status view, highlighting a file (staged or unstaged) and pressing D, diffs the last commit. I think it should diff the uncommitted file against the last committed version of…
Geoffrey
  • 5,407
  • 10
  • 43
  • 78
2
votes
1 answer

In tig, is there a way to view diff for all files like Github pull request

In tig, when showing diff view, we can only view diff per commits. What I want to achieve is a way to view diff for all files (just like git diff or Github Pull Request diff view). Is there a way or a mode to do that? Example image:…
Luong Vo
  • 33
  • 1
  • 7
2
votes
1 answer

How to save refs view ordering in tig

In tig, I order my refs view by date descending. How do I save this order/sort to be the default? I can't see this mentioned at all in the manual.
2
votes
0 answers

Default terminal background color

I tried to use tig 2 and I saw that the default background color was set color000 while the background color of the temrinal was different. Is there a way to set the background color the one in the terminal?
Andrius Bentkus
  • 1,392
  • 11
  • 25
2
votes
1 answer

Why do some git commits have "refs" when I look at them in Tig?

If I run "tig" on a git repo, I see that some commits have "refs" but some don't. The occurrence of "refs" seems random. I can not find a pattern. Sometimes merge commits have them, but sometimes they don't. Sometimes regular commits have them, but…
lorm
  • 3,141
  • 3
  • 15
  • 20
2
votes
1 answer

Show commits for branch on remote

With git log --graph I get to see commits pushed to remote origin after I did a git pull last: in tig I don't see these commits: Is there some flag or config I'm missing to get to see this in tig?
Cotten
  • 8,787
  • 17
  • 61
  • 98
2
votes
1 answer

How do I see combined diff for a range of commits in tig?

Github shows a combined diff of all the commits made on a branch in a pull request. e.g. this pull request has three commits and Github shows a combined diff for all those three commits. In git itself I can do something like git diff HEAD~ to see…
Waseem
  • 8,232
  • 9
  • 43
  • 54
2
votes
1 answer

Checkout a file from tig

If i open up tig with another branch: tig otherBranch Is it possible to navigate to the tree view find a file that I want and check it out to my current branch?
Allan Hortle
  • 2,435
  • 2
  • 20
  • 22
2
votes
3 answers

How to set timezone in tig?

I want to set timezone to tig http://jonas.nitro.dk/tig/, and I want to use Japanese timezone(+0900) in all commit, even if commiter has another timezone. Can I set specific timezone? Actual: Thu Oct 11 01:07:31 2012 -0700 Expect: Thu Oct 11…
Matt - sanemat
  • 5,418
  • 8
  • 37
  • 41
1
vote
1 answer

How do I look at a file across revisions?

I'm familiar with using https://github.com/jonas/tig to view my changes, but often I want to see the whole file and quickly run through the changes. I think this "git timemachine" feature doesn't exist in tig judging my these bug…
hendry
  • 9,725
  • 18
  • 81
  • 139
1
vote
2 answers

How to exit Tig search view?

In Tig, press the key to enter the search view. But if I accidentally press it, how should I quit? I tried the ESC and Backspace to no avail. I made a video about it. https://i.stack.imgur.com/qiu2e.jpg
liby
  • 679
  • 6
  • 13
1
vote
1 answer

How to write in file the output from "tig show commit-1 commit-2 patch"?

I'd like to write into a file the output from tig show commit-97b061ff commit-59466662 patch I tried tig show commit-97b061ff commit-59466662 patch >file.txt, but the file was empty. I expected that it would contain the patch actual. How can I solve…
1
vote
1 answer

how to custome change tig text color on iTerm?

I have installed tig, and confirmed installation successful. why in my ~/directory don't have .tigrc file? How can I configure tig?
Jone
  • 254
  • 3
  • 10