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.

link|improve this question
2  
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
feedback

1 Answer

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

login.xml

<user>John</user>
<password>Doe</password>
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.