LoginSignup
1

More than 5 years have passed since last update.

SmartGit > remoteへpush済のフォルダを削除し、ignoreする

Last updated at Posted at 2017-09-22
動作環境
Windows 7 Pro (32bit)
SmartGit Version 17.0.5 #10143

間違ってpushしたフォルダをignoreする方法。

remoteへpushしているフォルダの削除

参考: あとからまとめて.gitignoreする方法

フォルダ(例: Win32)をremoteにpush済の場合、以下のようにする。
(Tools > Open Git-Shell上で実行)

$ git rm -r --cached Win32

ignore

  • Repositoriesペインのプロジェクト > 対象フォルダ(Win32)上で右クリックし、ignoreを選択する。
  • ダイアログにてIgnoreボタンを選択
    • .gitignoreファイルに追記される
  • .gitignoreをcommit, push

補足

Filesペイン上でignoreばかりしていたので、Repositoriesペインでignoreするという発想はなかった。

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
1