Tuesday 15 January 2013

git - Submitting a file to GitHub without my personal details -



git - Submitting a file to GitHub without my personal details -

there little script submit github. script requires username , password , contains 2 next lines:

$username = "[enter username here]" $password = "[enter password here]"

since utilize same script on computer, write own username , password in file:

$username = "[my-username]" $password = "[my-password]"

the problem is, when insert details file, git detects file has changed , suggests submit changes, of course of study don't want.

i don't want maintain 2 separate versions of file, 1 me , 1 github, because requires create correction , bug-fix in 2 locations.

i don't want utilize separate configuration file , set in .gitignore, because create installation of script more cumbersome - downloading script have create configuration file on computer.

what want tell git single alter (the alter in insert username , password file) should not commited, while changes made afterwards should commited usual. possible git?

git

No comments:

Post a Comment