I have a private Github repo.
If I install Git locally, then whenever I make a change locally it will track that. My IDE will also track those changes through Git.
My IDE will also automatically upload changed files to my testing server, which will cause changes that will be tracked by Git there as well. If I do a git pull
on the testing server, then it will probably generate a warning about untracked changes, even though those changes should make it exactly the same as the Github repo.
So does it even make sense to have Git in both places? Should I just have Git installed on my local dev machine? But then I can't guarantee all files on the server are up to date (e.g. if an FTP upload failed without me noticing it).
How does one solve this kind of issue?