Hi,

Just checking here, are you aware of the "normal" way of excluding files 
with .gitignore files? I see you have one there in your working directory 
but maybe you haven't made use of it yet. 

The .git/info/excludes is more for the case where *you* want to ignore 
something, but don't want to share this configurations with others cloning 
the repository.

The nice thing with .gitignore files is that they can be checked into 
specific branches, thereby avoiding your problems.

Try this:

git checkout master
echo TODO.txt >> .gitignore
git add .gitignore
git commit -m "Ignoring TODO text files"

I don't believe they work differently on Windows 7, but if you still can't 
get it working, I can fire up Windows here and figure it out.

If you still want to do it using the excludes file, there's a writeup on 
how to do it here:  
http://cogniton-mind.tumblr.com/post/1423976659/howto-gitignore-for-different-branches

And the official docs on:  http://git-scm.com/docs/gitignore 

On Sunday, June 10, 2012 2:52:14 PM UTC+2, Alexander Myltsev wrote:
>
> Good day!
>
> I need excludesfile for a specific branch.
>
> $ git config --local branch.master.excludesfile
> +info/exclude_public
> $ ls .git/info/
> exclude  exclude_public  refs
> $ cat .git/info/exclude_public
> TODO.txt
> $ git status
> # On branch master
> # Untracked files:
> #   (use "git add <file>..." to include in what will be committed)
> #
> #       .gitignore
> *#       TODO.txt*
> nothing added to commit but untracked files present (use "git add" to 
> track)
>
> Does excludesfile work properly on Windows 7? What am I doing wrong?
>
> Regards,
>   Alex
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/Ogg_ep1IDu8J.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to