标签: git repository tortoisegit
我基本上使用TortoiseGit在本地克隆一个Git存储库,其中包含例如2个文件: - header.php - index.php
我想删除或编辑header.php并编辑index.php,但是当我提交& push我只希望index.php上的更改更新在线存储库(包含未更改的header.php和新的index.php修改)
我不想改变.gitignore ....
答案 0 :(得分:1)
Git commit -> "master"
header.php
Changes made
OK
Push...
您对index.php的更改现在将被推送到远程存储库,您对header.php的更改仍会出现在磁盘上。
index.php