I am new to git.
And would like following setup:
I have one folder Staging_folder where I put my programs once they are done. That folder is a git repository. That was really straightforward to implement.
Now I want another local folder (production_folder) to which I push the programs in the staging_folder with the push command.
The underlying idea is that the Staging_folder can contain changes which aren’t captured by git because I forgot to run it.
To avoid that any code can be run that wasn’t logged by git I want this extra folder and will exclusively run code from there.
I read this question:
Push Git Project to Local Directory
and made this –bare git repository. I can push to that and the master is there but the files are not in the folder on my filesystem.
Then I read this:
Local machine pushes branch but no files to Remote repo
and apparently the files aren’t expected to be there but its also bad form to not have that remote repo be –bare?
What is the correct way to implement the process as I’ve laid out?