I am new to Git, and trying to determine how to best implement it.
I have the following four machines:
- Linux server running GitLabs which stores my main repository.
- Linux production server running Apache, etc. I am not currently concerned about this part.
- Linux development server running Apache, etc. It also runs Samba and maps /var/www to Windows. It is located in my home and is on a LAN.
- Windows 7 PC running a PHP IDE (happens to be PhpED). It is located in my home and is on the same LAN as the Linux development server. It directly edits the files in the Samba folder on the Linux development server, as well as uses this folder for debugging, and does not have code directly on it. The IDE has some basic Git functionality via TortoiseGit, however, I don't yet know how strong it is.
I am currently not concerned about sharing files, but only version control.
I've read that Git is all about being local. Giving my configuration, does that mean Git is run on the Windows PC even though my working directory is not located on it? Or is it handled just using Linux between /var/www/ and the GitLab repository? How do you envision I implement Git under this configuration?
Thank you
But it's not really how you should use git
. I have heard that before, and it is exactly why I am in such a quandary. The problem is the files need to be on the Linux development server for debugging. If I put them on the Windows PC as well, then they are multiple versions everywhere. Maybe I should investigate mapping them from Windows to Linux? – Shani