LoginSignup
0
0

More than 3 years have passed since last update.

後から.gitingnoreにファイルを追加する

Posted at

【1】 .gitignoreに除外したいファイルを記載

#.gitignore
/spec/examples.txt

【2】除外したいファイルのキャッシュを削除

$ git rm --cashed spec/expamples.txt

【3】.gitignoreをプッシュする

$ git add .gitignore
$ git commit -m "Add file to .gitignore"
$ git push origin master

【4】githubにある除外したいファイルを削除

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0