I basically clone a Git repository locally with TortoiseGit and which contains for exemple 2 files:
I would like to remove or edit header.php and also edit index.php, but when I commit & push I want only the changes on index.php update the online repository (which will contain the unchanged header.php and the new index.php modified)
and I do not want to change .gitignore ....
Git commit -> "master".
Changes madearea. Enter a commit message and click
Push...to push your changes to the remote repository.
Your changes to
index.php will now be pushed to the remote repository, and your changes to
header.php will still be present on disk.