Skip to main content
Second iteration.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Straight from Atlassian: .gitignore

If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a .gitignore rule for it.

Using the --cached option with git rm means that the file will be deleted from your repository, but it will remain in your working directory as an ignored file.

You should still have the file in your working directory, but it will not be able to pushed to your remote reporepository, unless you force it.

Straight from Atlassian: .gitignore

If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a .gitignore rule for it.

Using the --cached option with git rm means that the file will be deleted from your repository, but it will remain in your working directory as an ignored file.

You should still have the file in your working directory, but it will not be able to pushed to your remote repo, unless you force it.

Straight from Atlassian: .gitignore

If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a .gitignore rule for it.

Using the --cached option with git rm means that the file will be deleted from your repository, but it will remain in your working directory as an ignored file.

You should still have the file in your working directory, but it will not be able to pushed to your remote repository, unless you force it.

Dressed the naked link. Applied some formatting.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Straight from Atlassian: https://www.atlassian.com/git/tutorials/saving-changes/gitignore.gitignore

If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a .gitignore.gitignore rule for it.

Using the --cached option with git rm means that the file will be deleted from your repository, but it will remain in your working directory as an ignored file.

You should still have the file in your working directory, but it will not be able to pushed to your remote repo, unless you force it.

Straight from Atlassian: https://www.atlassian.com/git/tutorials/saving-changes/gitignore

If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a .gitignore rule for it.

Using the --cached option with git rm means that the file will be deleted from your repository, but will remain in your working directory as an ignored file.

You should still have the file in your working directory but it will not be able to pushed to your remote repo, unless you force it.

Straight from Atlassian: .gitignore

If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a .gitignore rule for it.

Using the --cached option with git rm means that the file will be deleted from your repository, but it will remain in your working directory as an ignored file.

You should still have the file in your working directory, but it will not be able to pushed to your remote repo, unless you force it.

Source Link

Straight from Atlassian: https://www.atlassian.com/git/tutorials/saving-changes/gitignore

If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a .gitignore rule for it.

Using the --cached option with git rm means that the file will be deleted from your repository, but will remain in your working directory as an ignored file.

You should still have the file in your working directory but it will not be able to pushed to your remote repo, unless you force it.