Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Explore
Projects
Groups
CI/CD Catalog
Topics
Snippets
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Explore
Snippets
$2
When your .gitignore file gets…ignored
Code
Clone with SSH
Clone with HTTPS
Embed
Share
Snippet actions
The snippet can be accessed without any authentication.
Authored
10 years ago
by
Andreiu Galea
Edited
9 years ago
cleanup_gitignore.sh
86 B
1
2
3
git
rm
-r
--cached
.
git add
.
git commit
-m
"Now my .gitignore file works correctly!"
0
0
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment