Help us understand the problem. What is going on with this article?

git管理している途中から.gitignoreを追加して、その設定を反映させる方法

More than 5 years have passed since last update.

.gitignoreとは

Gitのバージョン管理対象から外すファイルを指定できる設定ファイルのこと

本題

Git管理をしている状態で、
途中から「.gitignore」に除きたいファイルを追加しても
既に管理対象に追加されているためそのままだと.gitignoreされない

そこでする作業は以下
git rm -r --cached .

あとはいつも通りgit add、git commit、git pushをすればok

※参考URL
http://qiita.com/Potof_/items/c75eba9cfa72819506de

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした