使用git需要遵循哪些精确的步骤?我将提供我的步骤(但是,有些不太顺畅):
- cloned a repository: (works fine)
- added settings files to .gitignore to prevent overwriting the originial
settingfiles on the remote (= test environment)
- made changes to my local repository and committed it locally (works fine)
- pushed it from local to remote (did not work properly)
当推送到远程时,远程上的设置文件被删除,这导致我的测试环境出现问题。我只希望在推送时忽略设置文件而不是删除它们。
我做错了什么或者遗漏了什么?有什么想法吗?