git - TortoiseGit how to edit or remove some files locally without affecting the online repository -
i clone git repository locally tortoisegit , contains exemple 2 files: - header.php - index.php
i remove or edit header.php , edit index.php, when commit & push want changes on index.php update online repository (which contain unchanged header.php , new index.php modified)
and not want change .gitignore ....
- right click in repository , click
git commit -> "master".
- uncheck
header.phpinchanges madearea. enter commit message , clickok.
- on progress dialog pops up, click
push...push changes remote repository.
- on push dialog pops up, click
ok.
your changes index.php pushed remote repository, , changes header.php still present on disk.




Comments
Post a Comment