Skip to content

Instantly share code, notes, and snippets.

@Edyta2801
Created June 12, 2020 13:14
Show Gist options
  • Save Edyta2801/39ef8e627291af56b7f63cb53bf83839 to your computer and use it in GitHub Desktop.
Save Edyta2801/39ef8e627291af56b7f63cb53bf83839 to your computer and use it in GitHub Desktop.
.gitignore
Plik/folder w twojej kontroli wersji nie usuwają się tylko dlatego, że dodałeś je do .gitignore. Są już w repozytorium i musisz je usunąć. Możesz to po prostu zrobić w ten sposób:
(Pamiętaj, aby zatwierdzić wszystko, co zmieniłeś, zanim to zrobisz.)
git rm -rf --cached .
git add .
Spowoduje to usunięcie wszystkich plików z repozytorium i dodanie ich z powrotem (tym razem przestrzegając reguł w .gitignore).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment