Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using a shell script to automate the deployment of my website. I now want to push the code of this site onto GitHub, and now I am facing the problem that my login details will be publicly accessible if I push the deploy script too. Is there any way of changing or leaving out the file when I push to GitHub? I would still like to keep it under version control.

share|improve this question
I guess, the better way to do such a thing is to keep your private info in separtate file excluded from version control, and somehow load it from the script (if it is shell-script, source is perhaps the easiest way to do so). – aland Sep 19 '11 at 15:22
Awesome, I'm doing it using source now, cheers! – Harry Lachenmayer Sep 21 '11 at 20:07

Have you considered keeping login information in a separate non versioned file?


share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .