Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
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
add comment

1 Answer

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

login.xml

<user>John</user>
<password>Doe</password>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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