1

I use NuSphere's PhpED's PHP IDE to crate and debuge PHP script.

I've never used a repository systems, but wish to do so now, and am struggling on how to implement it into my workflow.

I have the following three machines:

Windows 7 PC

  • NuShere PhpED IDE (It is set up to use my Local Development Centos Server)
  • TortoiseGit
  • SourceTree (Not sure if I will use since it doesn't integrate with PhpED)

Local Development Centos Server

  • Apache (used with PhpED on Windows PC)
  • GitLab
  • Samba (not set up yet, but plan on using to share /var/www files with PhpED on Windows PC)

Remote Production Centos Server

  • Apache

Will I need to install Git on the Windows PC?

Will I need to install Git on the Remote Production Centos Server?

PhpED has some basic shell integration with TortoiseGit. Think it is worth using, or am I better off using some other tool to interface with Git?

Any other description of a recommended workflow would be appreciated.

Thank you

user1032531
  • 24,767
  • 68
  • 217
  • 387

1 Answers1

0
  • Will I need to install Git on the Windows PC?

Yes, if you want to git clone the repos from your Local Dev Centos server onto your computer

  • Will I need to install Git on the Remote Production Centos Server?

Yes, if you want to push your repos to bares repos on your Remote Production Centos server.
But you can also consider other means to deploy those same repo:
A post-receive hook on the local Prod Centos server can:

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks Von. If I am using Samba to map the Linux drive to Windows, then will Git not be required on Windows? – user1032531 Mar 30 '14 at 14:22
  • @user1032531 it would still be required, if you want to add, commit, revert, merge or do any of the git commands in the repo you would access through the share. Plus this is really *not* the way to wrok with a *distributed* VCS: you clone on your local computer a repo in order to have the full history *locally*, without depending on the network or on a share. – VonC Mar 30 '14 at 14:24
  • The Local Development Centos Server is located in my house, and is on a high speed LAN. If I have the code on my Windows PC, I would need to keep it synchronized. Why not make it one drive shared by both? – user1032531 Mar 30 '14 at 14:32
  • @user1032531 Because in that case, you simply don't need git. If you are using git (for versioning and branching), then you clone a repo, you don't access through the network, however fast it is: Git has been designed to be *fast* on the *local* drive, not on the LAN/WAN. – VonC Mar 30 '14 at 14:33
  • Thanks again Von. Do you know of any whitepaper/blog/etc which describes the desired workflow? There are a bunch of tutorials on setting it up, but I haven't found one describing preferred workflow. – user1032531 Mar 30 '14 at 14:42
  • @user1032531 not really: once GitLab is working, you just clone the repo and start working on it locally. So the main point is to get GitLab up and running, following the doc at https://gitlab.com/gitlab-org/gitlab-ce/blob/master/README.md – VonC Mar 30 '14 at 14:45