{"thread":{"id":"13841","subject":"Help before pushing to remote repo.","startedAt":"2008-06-06T23:13:04Z","lastAt":"2008-06-06T23:28:33Z","messageCount":2,"participants":["Ralph Churchill","Eric Raible"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"78980","messageId":"351720.25873.qm@web30503.mail.mud.yahoo.com","threadId":"13841","inReplyTo":null,"subject":"Help before pushing to remote repo.","fromName":"Ralph Churchill","fromEmail":"mrchucho@yahoo.com","sentAt":"2008-06-06T23:13:04Z","receivedAt":"2008-06-06T23:13:04Z","isPatch":false,"sender":{"key":"mrchucho@yahoo.com","avatar":null},"body":"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.\n\nI'm using github for the remote repo. and am, obviously, very new to Git.\n\n\n      \n"},{"id":"78983","messageId":"loom.20080606T232618-691@post.gmane.org","threadId":"13841","inReplyTo":"351720.25873.qm@web30503.mail.mud.yahoo.com","subject":"Re: Help before pushing to remote repo.","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2008-06-06T23:28:33Z","receivedAt":"2008-06-06T23:28:33Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"Ralph Churchill <mrchucho <at> yahoo.com> writes:\n\n> \n> I have a file that contains a \"secret\" key value. I unwittingly committed two\ncommits to my local repository\n> that contained the value. Is there anything I can do to prevent the value from\nmaking it to the version(s)\n> visible in the remote repository? I don't know if I can \"edit\" the commits or\nchange the history of the file.\n> \n> I'm using github for the remote repo. and am, obviously, very new to Git.\n\nAssuming that you haven't yet pushed it to the remote repository...\n\nhttp://www.kernel.org/pub/software/scm/git/docs/user-manual.html#fixing-a-mistake-by-rewriting-history\nhttp://www.kernel.org/pub/software/scm/git/docs/user-manual.html#undoing-a-merge\n"}]}