Re: gitk doesn't work w/o sudo.
- From
- Reece Dunn <msclrhd@googlemail.com>
- Date
- Jan 19, 2009, 11:59 UTC
- Message-ID
- <3f4fd2640901190359w39ded50ds246903808e94246c@mail.gmail.com>
- In-Reply-To
- <c94f8e120901190216x246589ebwc4a44dd85bb655d2@mail.gmail.com>
2009/1/19 Dilip M <dilipm79@gmail.com>:
Show 5 quoted lines
> Hi, > > ..I recently install GIT on Ubuntu (hardy) box....I am able to use > 'gitk' only If I do 'sudo'. Without 'sudo' it complains 'repository > not found'
Who is the owner of the repository directory (and the .git directory) and what are the permissions on the directory? You can run (on the command line from the Terminal program):
ls -lh directory
to find this out (where directory is the directory you are interested in) and run:
sudo chown user -R directory
to change ownership of that directory (and all of its content) to the specified user (i.e. the one you are currently logged in as). This will make it so that you own that directory and can make changes to it. This should allow you to run gitk without using sudo.
HTH, - Reece