When I run gitk
, a Tk window pops-up saying that "It cannot find a GIT repository here".
What am I missing? These are the steps I followed. Forgive me if I missed something stupid.
[~/TEMP]$ ls
[~/TEMP]$ git init abc
Initialized empty Git repository in /*******/home/jganhotra/TEMP/abc/.git/
Added a file
[~/TEMP]$ cd abc/
[~/TEMP]$ ls -la
total 16
drwxr-x--- 3 jganhotra eng 4096 Aug 15 16:05 ./
drwxr-x--- 3 jganhotra eng 4096 Aug 15 16:04 ../
drwxr-x--- 8 jganhotra eng 4096 Aug 15 16:05 .git/
[abc]$ touch a.txt
[abc]$ gvim a.txt
[abc]$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# a.txt
nothing added to commit but untracked files present (use "git add" to track)
[abc]$ git add .
[abc]$ git commit -m "Added file"
[master (root-commit) 1ff1051] Added file
1 file changed, 1 insertion(+)
create mode 100644 a.txt
Made the commit
[abc]$ git status
# On branch master
nothing to commit (working directory clean)
[abc]$ git log
commit 1ff1051370dfb69a0e85a60f322da7389366db8b
Author: Jatin Kumar Ganhotra <jganhotra@******.com>
Date: Mon Aug 13 19:10:38 2012 +0530
Added file
[abc]$ gitk
[abc]$ which gitk
gitk: aliased to /*******/tools/install/git-tools/git-1.7.11.2/bin/gitk
[abc]$ ls -la /******/tools/install/git-tools/git-1.7.11.2/bin/gitk
-rwxr-x--- 1 devadmin eng 329597 Jul 17 17:43 /*******/tools/install/git-tools/git-1.7.11.2/bin/gitk
This should have worked. What have I missed? I believe there is some dependency left.