Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
217
Help us understand the problem. What is going on with this article?
@kamesennin

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

217
Help us understand the problem. What is going on with this article?
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
litalico
ビジョンは障害のない社会をつくる

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
217
Help us understand the problem. What is going on with this article?