Other considerations
Binary Files
When I’m working with some IoT devices, they have binary configurations. Although Git can track these and even identify that files differ, it is primarily a text tool, it doesn’t analyse binary files well.
GIT Ignore
If there are specific file types which you do not want GIT to check into a repo, you define these in a file called .gitignore in the root of a repo.
More on this when we look at GITHUB.
You can also have .gitignore files in each specific folder. So for example, I could have a folder of shell scripts with specific things to ignore. In my Python repos, I have the line *.pyc in my .gitignore, so compiled Python code does not get included in the repo.
Sometimes we include credentials or SSH keys in a working directory.
We never copy these to the repo!