I have a bin/ folder with tons of Bash, Python scripts and some C code.
In this folder, I did:
git init
git add file_name
I thought git add .
would not be good because it would think that all the different scripts and programs were part of the same commit. The git status
command just scrolls off the page. When I create a branch I don't know what name to give it.
Is it better to make a folder for each individual project for code? Then run this in each folder?
git init
git add .
I think it would be easier to branch that way too. Is this useful/recommended? What are best practices
Yes I would strongly recommend using git for each directory / project.
This will also be very helpful when you use github and move around machines as you'll be able to manage the code for each project and do things like 'git status' just to see changes for that project.
Imagine wanting to use the contents of one individual project on a new machine. If you have everything in one repository, you'll have to get it all then select what you want. There's probably smart ways around that but I always look for the most sensible KISS solution.
I wouldn't use git the way you describe. For that I would consider a more simple Dropbox or other basic cloud server storage style solution. Dropbox has security but if you need a more personalized secure solution you'll looking at more private hosting, etc.
So the answer to your question of:
"Is it better to make a folder for each individual project for code? Then run this in each folder?
Is this useful/recommended?"
Is Yes!