##gitにあげる際、公開されてはいけない情報を隠したい
config/initializersにomniauth.rbを作りました。
TWITTER_CONSUMER_KEY = fagdfjksanmafoj3r9q3023 TWITTER_CONSUMER_SECRET = asfjhq23ur98quewjfhgfwefh932345qqreq
次にターミナルで確認しました。
git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Gemfile modified: Gemfile.lock Untracked files: (use "git add <file>..." to include in what will be committed) config/initializers/gitignore config/initializers/omniauth.rb no changes added to commit (use "git add" and/or "git commit -a") mba:$ git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Gemfile modified: Gemfile.lock Untracked files: (use "git add <file>..." to include in what will be committed) config/initializers/omniauth.rb no changes added to commit (use "git add" and/or "git commit -a")
config/initializersにgitignoreを作り、
omniauth.rb
これを書いた後、
git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Gemfile modified: Gemfile.lock Untracked files: (use "git add <file>..." to include in what will be committed) config/initializers/gitignore config/initializers/omniauth.rb no changes added to commit (use "git add" and/or "git commit -a")
この状態でpushしても問題ないでしょうか。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/17 11:30
2019/01/17 11:31
2019/01/17 13:40
2019/01/17 13:48 編集
2019/01/17 13:48
2019/01/17 13:49