On Wed, 24 Apr 2013 07:09:07 -0700 (PDT)
Andrzej Borucki <
borucki...@gmail.com> wrote:
> and have init it with two files: README.md and .gitignore.
> Repository is for Pascal files, in .gitignore I have:*.~*~
^^^ This pattern looks botched to me.
Did you compose your message using the Google Groups web interface?
> When I copy file parse.~pas and type "git status" it show this file
> parse.~pas is untracked
> When I type "git add ." and "git status" it show this file parse.~pas
> is new I search answer in internet with Google but I found only:
> git rm -r --cached .
> git add .
> git commit -m "fixing .gitignore"
> But it not works correctly
> How ignore files? It is a git bug or feature?
> Thanks for advice
Works for me, observe:
C:\tmp>mkdir foo
C:\tmp>cd foo
C:\tmp\foo>git init
Initialized empty Git repository in C:/tmp/foo/.git/
C:\tmp\foo>touch test.~pas
C:\tmp\foo>git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# test.~pas
nothing added to commit but untracked files present (use "git add" to track)
C:\tmp\foo>cat >.gitignore
*.~pas
^Z
C:\tmp\foo>type .gitignore
*.~pas
C:\tmp\foo>git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .gitignore
nothing added to commit but untracked files present (use "git add" to track)
C:\tmp\foo>git --version
git version 1.8.1.msysgit.1