As I read in the document, it should first read the local one, then global, then system in order, so it should only read /etc/gitconfig if only can't find one in ~/.gitconfig, am I right? Why it isn't the case here? Or does GitKraken deliberately setting to read the config file from /etc/gitconfig first instead of the above order?Ĭonclude, I deleted the system gitconfig /etc/gitconfig (by renaming it to /etc/.gitconfig btw). But I think it's just a workaround, I don't know what's the consequence of doing this (deleting system gitconfig). And yet after deleting /etc/gitconfig, it works (I can clone my repo as expected). Here is a non-exhaustive list of reasons why: It crashes every 2 minutes. Then I thought "aha, I could just delete the /etc/gitconfig, then Kraken will use ~/.gitconfig". by EclMist GitKraken is by far the most frustrating git client that I've ever used I have been using GitKraken for a good 3 months now, and compared to something like SmartGit, it is one of the most frustrating git clients I've ever come across. git/gitconfig), global (in ~/.gitconfig) and system (in /etc/gitconfig). I then kept googling, then I knew that there are 3 types of config files for git, which are local (located in. Your repository is then cloned and ready for you to start work on. But after doing that, it still not work (permission denied), even after a reboot. Then, simply name the clone (or keep the default name) and click the Clone the repo button. After googling, I found a solution sounds rational is to type chmod 777 /etc/gitconfig to give everyone (includes GitKraken) the permission to read/write to that config file. So I think GitKraken software needs to access a gitconfig file to get things work, and it somehow tried to access the one at /etc/gitconfig first (which is locked - I don't even know what "lock" mean), so it threw the error. I tried to clone a repo using GitKraken on Ubuntu, but it threw me an error "failed to open '/etc/gitconfig' - permission denied".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |