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 ....

  1. right click in repository , click git commit -> "master".

step 1

  1. uncheck header.php in changes made area. enter commit message , click ok.

step 2

  1. on progress dialog pops up, click push... push changes remote repository.

step 3

  1. on push dialog pops up, click ok.

enter image description here

your changes index.php pushed remote repository, , changes header.php still present on disk.


Comments