gitは私がここにほしいと思わないので、助言が必要です。パスワードなどの機密情報を持つ設定ファイルがあります。 (ファイル名はbuild.propertiesある)gitを使ってパスワードファイルの偶発的なチェックインを防ぐ
username = bob
password = secretpassword
username =
password =
は今、私は実際の値でそれを記入し、その後、.gitignoreするファイルを追加します。私は、空白/一般的な値で設定ファイルをチェックインしていると言います
私はそれを.gitignoreに追加しましたが、gitはまだ "見る"ようです。私はここで何をすべきですか?
hostname$ more .gitignore
build
ant.build
*.swp
build.properties
hostname$ git status
# On branch dev
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: build.properties
#
no changes added to commit (use "git add" and/or "git commit -a")
私は何かを誤解していますか?
だから、もし誰かが 'git -a -m '何をすれば自動的にパスワードを自動的にチェックするのだろうか? – corydoras
はい、バージョン管理下にある場合はコミットに含まれます – knittl