threads / discuss / 13841

Help before pushing to remote repo.

Subject: Help before pushing to remote repo.

## tl;dr

2 messages between Jun 6, 2008 and Jun 6, 2008.

replies: 1people: 2as markdown or json

Ralph Churchill· Jun 6, 2008, 23:13 UTC · lore
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.
      
Eric Raible· Jun 6, 2008, 23:28 UTC · re: Ralph Churchill · lore

Re: Help before pushing to remote repo.

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

← back to recent threads