Hi, Let's say I have a local git server and a remote service such as Bitbucket/Github/Gitlab etc.
Let's say I've got a few files in the repository holding sensitive information (e.g. "config" files containing passwords etc.) Is there a way to do a selective push to the remote service ? (i.e. a sort of .gitignore type thing, but not gitignore because the config files should still be commited to the local repository to enable dev testing). Thanks ! Unfortunately, Git does not use a file based model, rather it uses a project snapshot model. So once you have committed that particular file it is permanently embedded in the snapshot, so any push of the snapshot will include that 'secret'. (It's a common issue for folks who accidently push their Amazon keys to a free server..) You may be able to arrange some hooks that create a separate parallel branch that does not have the keys, but it may be more hassle than its worth. Just don't commit secrets! -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
