I'm currently not using Webfaction's Git app to manage my git repos, instead I am cloning and push/pull directly from Github into ~/webapps, which is working fine. Now that I want to use Trac+Git, I've set up WF Git, but I'm not familiar with the type of repo it is creating... looks the the actual git repo and not the project contents (HEAD, hooks, etc). How do I pull updates to this thing to keep it current?
asked Mar 01 '12 at 17:32
The Git repo on WebFaction is the same structure as the Git repo on (for example) Github. They're known as bare repositories because they only contain the contents of what is normally located in the ".git" directory. There is no "working tree", and you then interact with your WebFaction repository by cloning it and pushing updates to it.
Therefore, if you want to use the Git hosted on WebFaction, it will replace Github - you won't be using both to host the same repository at the same time. Let's go through an example of how you'll do the following:
1.) Setting Up a Git Application
The Git application is set up like any other application, so it lives in
For the sake of this example, we will use:
Create Website Record:
This application will store its bare repositories in
2.) Initial Copy of External Repo to WebFaction
Since your original repository was on Github, you need to move it over to WebFaction (which will replace Github). Do that via something like this:
This will create a new bare git repository at
At this point, you should be able to see your repository in the list of repositories at
3.) Preparing the New WebFaction Repo
Next, enable git push over HTTP for your new repository as described in the Git Documentation:
4.) Using the WebFaction Repo
First, create your empty application from the Control Panel. For this example, suppose we created a Django application named
This repository has the ability to both pull and push over HTTP. Most other providers do not support push over HTTP.
Traditional SSH-based access is available as well:
5.) Configuring Automatic Website Updates (optional)
Since you now have your git repository hosted on the WebFaction server, you now have the option of enabling automatic website updates whenever you push to your repository. This process is described here.
answered Mar 01 '12 at 20:23