07mm8
07mm8

Reputation: 3308

How to mark folders as excluded in intellij but also commit to git?

If I mark the dir as excluded and someone else checksout the project then the folder is not excluded. Same if I manually delete that folder. Any solutions for that? thanks

Exclude folder on intellij, checkout project in another folder. Folder is not excluded. Note: I didn't say git ignored, I said intellij excluded.

Upvotes: 1

Views: 1914

Answers (1)

Ruslan Kuleshov
Ruslan Kuleshov

Reputation: 2425

If you would like to delete a folder from remote repository then you need:

  1. git rm -r --cached myFolder
  2. Add folder to ignore/exclude by Right-click on folder | Git | Add to .gitignore
  3. Commit these changes and push them to remote

Upvotes: 0

Related Questions