git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Help before pushing to remote repo.
@ 2008-06-06 23:13 Ralph Churchill
  2008-06-06 23:28 ` Eric Raible
  0 siblings, 1 reply; 2+ messages in thread
From: Ralph Churchill @ 2008-06-06 23:13 UTC (permalink / raw)
  To: git

I have a file that contains a "secret" key value. I unwittingly committed two commits to my local repository that contained the value. Is there anything I can do to prevent the value from making it to the version(s) visible in the remote repository? I don't know if I can "edit" the commits or change the history of the file.

I'm using github for the remote repo. and am, obviously, very new to Git.


      

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

* Re: Help before pushing to remote repo.
  2008-06-06 23:13 Help before pushing to remote repo Ralph Churchill
@ 2008-06-06 23:28 ` Eric Raible
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Raible @ 2008-06-06 23:28 UTC (permalink / raw)
  To: git

Ralph Churchill <mrchucho <at> yahoo.com> writes:

> 
> I have a file that contains a "secret" key value. I unwittingly committed two
commits to my local repository
> that contained the value. Is there anything I can do to prevent the value from
making it to the version(s)
> visible in the remote repository? I don't know if I can "edit" the commits or
change the history of the file.
> 
> I'm using github for the remote repo. and am, obviously, very new to Git.

Assuming that you haven't yet pushed it to the remote repository...

http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#fixing-a-mistake-by-rewriting-history
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#undoing-a-merge

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

end of thread, other threads:[~2008-06-06 23:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-06 23:13 Help before pushing to remote repo Ralph Churchill
2008-06-06 23:28 ` Eric Raible

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).