Talk:Git

From OLPC
Revision as of 07:15, 12 October 2007 by 212.71.30.162 (talk)
Jump to: navigation, search

ortatro

Help!

I'm having two problems with git which are not critical but very annoying. I'm on ubuntu feisty and everything relevant is installed by apt-get

1. The core.editor config option is not working. I hate vi, could live with vim, but for such simple stuff prefer pico. Here is the config file from my .git directory:

[core]
       repositoryformatversion = 0
       filemode = true
       editor = "/usr/bin/pico"
[user]
       name = homunq
       email = asdfasdfasdf

Suggestion: Try setting GIT_EDITOR, VISUAL or EDITOR in environment, in that order. Depending on the version of git you got, one of them must work. git-config core.editor is relatively recent invention (1.5.3-rc3). Better yet - just upgrade your git.

2. My .gitignore (*.pyc and *.bak) is not working. I've tried putting it both in my project directory (idlydevelop) and in the .git subdirectory. It is added and committed to the repository too, not that that should make any difference.

Suggestion: another place is .git/info/exclude, but it actually works in .gitignore here (it is recursive, and has no problems with CR/LF line endings)

Any help would be appreciated. Thanks, Homunq 01:45, 5 September 2007 (EDT)