Uncommitted files are always are risk for being overwritten on a checkout
(though I believe git will complain about them and not check out).  If you
don't want git touching the files, you should also add them to the
.gitignore file after you untrack them.  It's usually not a good idea to
ignore files in one branch, and track them in another.
    Tekkub
    Github Tech Support
    http://support.github.com/
    Join us on IRC: #github on freenode.net
    Discussion group: [email protected]


On Tue, Aug 11, 2009 at 11:59 PM, Jeenu <[email protected]> wrote:

>
> Let's say I'm on a fresh master branch, where I've untracked files.
> Later, I created a branch foo from master, and decided to track some
> files (that are untracked on master). The problem I face is that, when
> I checkout master, these files get removed from disk. This is quite
> expected as these files are not part of master. But I want them to be
> left alone as they are. Is there any way to preserve these files
> across checkouts, depending on whether they are tracked?
>
> Well, I could add all files to master in the beginning itself. But
> suffice it to say that they are in huge numbers; I don't know what
> branches I would create, and what files I'll decide to track later.
>
> Thanks
> :J
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to