Questions tagged [tig]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
163 views

Creating An InfluxDB Repository using AWS EC2 Server

I am attempting to create an Influx DB Repository to download the TIG Stack onto my AWS EC2 server, but whenever I attempt to install something I keep getting the error: One of the Configured ...
Karl Montano's user avatar
1 vote
1 answer
408 views

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 ...
hendry's user avatar
  • 9,795
3 votes
1 answer
166 views

Is it possible to apply single lines from stash?

I'm looking for a way to include specific parts of stashes in stage. I'm using TIG frontend, so the method can involve some low level offset, etc. calculation. However currently I don't have any idea ...
psprint's user avatar
  • 349
0 votes
1 answer
103 views

Is it possible to search for a particular string directly from a key binding, in TIG?

Can you search for a specific string directly from a bound command? I have a super-useful configuration – a bind to that opens up this simple Zsh script on '%(text)' passed as 1st argument: #!/usr/...
psprint's user avatar
  • 349
-1 votes
1 answer
380 views

Can I use tig to only display a given set of commits

I'd like to use tig to browse an arbitrary list of commits so that I can do something like: git rev-list --author joe | tig --stdin and then only see Joe's commits. However, I see one of Joe's ...
Jens D's user avatar
  • 4,239
1 vote
2 answers
311 views

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....
liby's user avatar
  • 679
8 votes
3 answers
2k views

git completion in zsh: __git_func_wrap:3: : not found

git-completion.zsh and git-completion.bash are installed automatically when running brew install git: ❯ ls -l /usr/local/share/zsh/site-functions/_git lrwxr-xr-x 56 quanta 7 Jul 18:54 /usr/local/...
quanta's user avatar
  • 4,020
1 vote
1 answer
262 views

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 ...
Dani Budinova's user avatar
0 votes
1 answer
115 views

How to bind to multiple keymaps with one line?

I'm trying to remap/bind G in tig to match vim's functionality (move to last line) in all of tig's keymaps. I read the tigrc manpage, here's all that's mentioned about binding to keymaps Keymaps ...
Wis's user avatar
  • 484
2 votes
1 answer
555 views

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 ...
Luong Vo's user avatar
0 votes
1 answer
519 views

Stage all files in tig

In tig command line tool for git, you go to the status view and you press u to stage a file. What I am curious about is how to perform that actions multiple time without repeating the word u. Is this ...
Luong Vo's user avatar
0 votes
1 answer
195 views

Tig doesn't show lines but instead ~T~B (or similiar)

I am using tig to view git history but the interface is not showing the lines any longer, see picture. I'm sadly on a Windows environment running git bash. Does anyone know how I can get the lines ...
Aircleaner's user avatar
0 votes
2 answers
286 views

Error while trying to set config in tigrc

I've below line in my tigrc file set commit-title-graph = no I'm getting this error when I run any tig command, and I'm not able to fine what it the issue. tig warning: ~/.tigrc:1: Unknown option ...
pr4bh4sh's user avatar
  • 664
6 votes
3 answers
2k views

Take sha number of commit by tig

I love to use tig client to navigate through git commits. But I'm missing one thing for now. Is there a key binding to take a sha number of a git commit I'm currently staying at?
megas's user avatar
  • 21.4k
2 votes
1 answer
220 views

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.
Ashley Summers's user avatar
1 vote
1 answer
210 views

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's user avatar
  • 254
1 vote
1 answer
558 views

Get commit where merged branch forked from (with intermediate merge)

Lets use the latest available git 2.16.2 and tig 2.3.3. cd /tmp && mkdir fit && cd fit git init touch m1 && git add m1 && git commit -m "master 1" touch m2 && ...
puchu's user avatar
  • 3,294
15 votes
1 answer
4k views

Shortcut for making tig showing all the branches

There is tig --all but I want to be able to switch between usual tig and tig --all interactively. Is there a way to do this?
Evmorov's user avatar
  • 1,143
0 votes
1 answer
206 views

Tig configuration open in status by default

How I can start tig on status view by default? I tried with set cmdline-args = --all status not working
Arnold Roa's user avatar
  • 7,415
0 votes
2 answers
432 views

Listen and Refresh Commit Changes on Tig

I'm using :! git pull command for pulling changes from a repo. But Tig doesn't refresh main view list when pulling changes. Is there anyway to listen and refresh commits on main view list at Tig ...
fatihturan's user avatar
1 vote
1 answer
265 views

Unimportant branches are stuck at the top of my tig view

I am using tig version 2.2.1, and for some reason tig decides to show me a couple of unimportant branches, in addition to the branch I am currently working on. The two additional branches has nothing ...
Quaker's user avatar
  • 1,483
1 vote
1 answer
401 views

Browse lost heads with tig

tig is a nice text-mode interface for Git, but it only shows the current branches. How can I see lost heads and stashes in the tree view?
rubo77's user avatar
  • 19.6k
1 vote
1 answer
236 views

Track a (once been deleted) file [duplicate]

Here's my case: A file been added, removed and added again (same name). How do I track time stamp prior to it's most recently adding? file: file.c ---> null ---> file.c status: added ...
Rahn's user avatar
  • 4,783
1 vote
1 answer
632 views

unable to use external command in tig

I use git and gitk a lot. Recently, I found some enthousiastic posts about tig and decided to give it a try. It looks great for viewing the repository, however changing the repo with tig seems ...
ruud's user avatar
  • 745
4 votes
1 answer
319 views

How do I undo maximize in tig?

In tig, I start in the main view, and when I hit Enter on a commit, I get a split-screen with the diff view. I'm scrolling through the diff view, and then I accidentally type O. Now the diff view is ...
Kate Bertelsen's user avatar
3 votes
2 answers
620 views

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's user avatar
  • 4,094
2 votes
0 answers
176 views

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 ...
Andrius Bentkus's user avatar
2 votes
1 answer
347 views

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 ...
lorm's user avatar
  • 3,141
0 votes
1 answer
267 views

search for a revision in tig

I'm a big fan of tig http://jonas.nitro.dk/tig Using "/" like in vim we can search for comit with / I'm looking for to get a specific hashtag e.g 2f12bcc
user3313834's user avatar
  • 7,327
0 votes
1 answer
435 views

Git browse through non-empty commits

I work on this project which has many commits with empty changesets. As much as I would like to run git filter-branch and remove those commits, this is really not an option. Are there any tools (e.g. ...
Francisco's user avatar
  • 3,990
4 votes
2 answers
1k views

tig configuration : set on tigrc --all as default

In my tig configuration I usually use the command: tig --all How can I set this as the default in ~/.tigrc ?
user3313834's user avatar
  • 7,327
1 vote
1 answer
224 views

How to install tig docs via Homebrew?

I installed tig via Homebrew and tig works okay, but is there are way to also cleanly install its man pages via brew too instead of from source (i.e. avoiding make install-doc as described at https://...
k1eran's user avatar
  • 4,492
4 votes
1 answer
839 views

Git tool `tig`: What do those letters in the graph mean?

When I run tig, I see a graph of the branches. It uses letters on those lines to show what happened there: “o” means commit “M“ is a merge “I” is a merge What is the difference between “M” and “I”?
Robert Siemer's user avatar
8 votes
2 answers
3k views

How to change orientation in tig status view

I need to swicth between landscape and portrait orientations in tig status view cause sometimes diff line doesn't fit to right part of view.
Evgen Druzhynin's user avatar
2 votes
1 answer
787 views

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's user avatar
  • 8,807
7 votes
2 answers
2k views

How to get proper diff of merge commit in tig

if i got into tig main view, i get a nice graph of commits and merges. i'd prefer to just look at the merge commits to trunk but unlike with normal commits tig where tig shows the full diff with file ...
kapilt's user avatar
  • 264
1 vote
2 answers
1k views

How do I remove the dark blue that is used in tig in cygwin?

I have looked all over google and I am still unable to find the config param to get rid of the dark blue that is used by tig in the cygwin terminal. The Dark Blue just like when it is used in ls can ...
astaubin's user avatar
  • 305
3 votes
2 answers
510 views

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) ? (...
Dangelov's user avatar
  • 701
0 votes
1 answer
131 views

How to change rev-list in tig

tig provides useful rev-list filtering on the command line. My questions is - how do I filter the rev-list "after" the tig has been invoked. For example, I'd like to browse different branches with "...
user3303881's user avatar
4 votes
1 answer
1k views

Can Tig color commits of different branches differently?

In tig, I find it often hard to find out which commit belongs to which branch. In gitk, this is much more easier. I think this is because of two things. Firstly, gitk colors the branches differently (...
Rolf's user avatar
  • 1,129
2 votes
1 answer
3k views

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 ...
Waseem's user avatar
  • 8,242
1 vote
1 answer
526 views

Tig doesn't display colors at all

I'm trying to work with tig to see git database. But it doesn't display colors at all. If I try to set a color in ~/.tigrc it just ignores it. I added a binding and it works, so tig do see my tigrc ...
Kamil.Khoury's user avatar
1 vote
1 answer
92 views

Find previous chunk to stage

How do I navigate to the previous chunk to stage when viewing a single file in tig status mode? What I'm looking for is the opposite to stage-next (mapped to @ by default), but there is no stage-...
joelpet's user avatar
  • 4,869
22 votes
1 answer
8k views

Tig revert (checkout) single line / chunk

Is there an option to revert changes from a single chunk in Tig's Status View? I mean functionality opposite to u or 1. I am aware of ! operation, but this one reverts the whole file - not just a ...
houen's user avatar
  • 931
2 votes
1 answer
2k views

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's user avatar
  • 2,455
1 vote
1 answer
276 views

How to display CommitDate instead of AuthorDate in tig main view

The main tig view shows a very useful one-line-per-commit view with the AuthorDate in the first column. Is it possible for this to display the CommitDate instead?
Walter's user avatar
  • 175
1 vote
1 answer
418 views

How to display full file path in tig view

I use tig to view what's changed. But how to show the full path in the changed file list instead of only part of long file path? for example, I want to see the full path of SpecialAnswList.java, ...
Jeff Liu's user avatar
  • 366
5 votes
2 answers
2k views

Showing a file tree view of a commit in tig

I'm using tig and would like to see the list of changed files in a commit, possibly drilling down to a diff view of a specific file, yet I haven't found a way to do this. Is it possible, or is only ...
Stavros Korokithakis's user avatar
3 votes
1 answer
4k views

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

In git, it is git diff <file path>, 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 ...
Geoffrey's user avatar
  • 5,407
14 votes
3 answers
2k views

tig blame view: How to come back (child commit) after loading parent commit

In a blame view, I use ',' to load blame for the parent commit. How to come back to the child?
Dilip M's user avatar
  • 141