git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git bisect/checkout and changes to .gitignore
@ 2012-06-22  7:51 Chris Angelico
  2012-06-22 10:31 ` Johannes Sixt
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Angelico @ 2012-06-22  7:51 UTC (permalink / raw)
  To: git

Greetings! I'm not certain if this list or the git-users group is more
appropriate; my apologies if I've picked wrong.

At my workplace we use git to manage all of our source code. Every now
and then, we decide that some particular file oughtn't to be
git-managed, and add it into .gitignore and remove it from the
repository (for instance, configuration files that become
per-developer).

Is there a way to checkout an old version of the repository (before
the file was added to .gitignore), then return to the current state,
without destroying these sorts of files? Currently, checking out the
old version quietly "takes control" of the file, and then checking out
a newer one deletes it.

I've read through the man pages for 'git checkout' and 'gitignore' and
searched the one for 'git config' (it's a little large to read all
of), without seeing an option to preserve files on checkout. Is there
a way to do this, and if so, where can I find it?

Thanks in advance!

Chris Angelico

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-22 17:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22  7:51 git bisect/checkout and changes to .gitignore Chris Angelico
2012-06-22 10:31 ` Johannes Sixt
2012-06-22 12:07   ` Chris Angelico
2012-06-22 17:42   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).