Welcome Guest, Not a member yet? Register   Sign In
Git advice/tips for Ubuntu & remote server?
#2

[eluser]Phil Sturgeon[/eluser]
I deploy all of my websites using Git.

With git you basically have two kinds of repository.

One is the equivilent of a SVN working copy but of course contains local commits, branches, etc. It is mainly just your code with a single .git folder. These are made with "git init".

The other type of repo is less friendly. It contains lots of metadata folders like .objects, .head, etc. This is what you'll have when using a hosted Git repo, so thats fine. If you do it manually, they are made with "git --bare init".

Basically I have a working copy type repo on my local machine and on my live site. When I change my site on my local box I push from local -> GitHub, then oull from GitHub to my live site.

There might be an easier way, but for me this is easy enough. I just SSH, cd to the directory and git pull origin master. Problem solved. :-)


Messages In This Thread
Git advice/tips for Ubuntu & remote server? - by El Forum - 01-25-2010, 03:26 PM
Git advice/tips for Ubuntu & remote server? - by El Forum - 02-18-2010, 08:17 AM
Git advice/tips for Ubuntu & remote server? - by El Forum - 02-18-2010, 11:34 AM
Git advice/tips for Ubuntu & remote server? - by El Forum - 02-18-2010, 01:29 PM
Git advice/tips for Ubuntu & remote server? - by El Forum - 02-21-2010, 09:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB