0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

これまでgit管理下にあったフォルダやファイルをgit管理から除外する方法

Posted at

.gitignoreを使う

1.ターミナルにて、git管理下ルートフォルダまで移動
2.Vim .gitignoreで開く(or 新規作成)
 https://k-sasaking.net/programing/gitignore-setting/
 を参考に追記して:wqで保存
 予めコピーしてある内容があればそれもペースト
3.ターミナルにて以下コマンド実行

test-git.cmd
git rm -r —cached .
git add .
git commit -m “.gitignore update

4.Source Treeからプッシュ


参考
https://ticklecode.com/gitignoreupdate/#gitignore%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92Vim%E3%81%A7%E4%BF%AE%E6%AD%A3%E3%81%99%E3%82%8B%E3%80%82
https://k-sasaking.net/programing/gitignore-setting/

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?