4

removing files part of a later-added git ignore | Jamie Dixon's Home

 2 years ago
source link: https://jamessdixon.com/2018/12/10/removing-files-part-of-a-later-added-git-ignore/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

removing files part of a later-added git ignore

December 10, 2018 Leave a comment

Dear Future Jamie

When you add a gitignore to an existing project, to force git to release the files you don’t want, run the following from the directory where the project is located (note the extra period at the end of the 2st two commands)

1 git rm -r –cached . 2 3 git add . 4 5 git commit -am "Remove ignored files" 6

Past Jamie

Loading...

Related

Using Git With Visual StudioNovember 25, 2014In "Git"

Azure Functions Using F#August 3, 2021

Gitting StartedFebruary 14, 2012With 1 comment

Filed under Git


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK