Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

GIT - Cleaning ignored file when .gitignore added after changes

# Remove the files from the index (not the actual files in the working copy)
$ git rm -r --cached .

# Add these removals to the Staging Area...
$ git add .

# ...and commit them!
$ git commit -m "Clean up ignored files"
Source by www.git-tower.com #
 
PREVIOUS NEXT
Tagged: #GIT #Cleaning #file #added
ADD COMMENT
Topic
Name
8+3 =