Search code examples
gitgitlabtortoisegit

TortoiseGit doesn't add files automatically


When I create a new file in a git tracked folder and click commit it doesn't show for commit. If I want to show it, I need to right click, then click Add ... then to commit it. Other users can commit without the Add step. I am master of the project in GitLab.

Other problem is when I want to push every time TortoiseGit requires me to re-enter username and password, but when someone else (my friend) try to do that, it doesn't request his.


Solution

  • Make sure you don't have a rule in your .gitignore file that might be excluding files unexpectedly. For example here I have localhost.pfx set to be ignored but the right-click context menu still allows me to add it to a commit: enter image description here