Skip to content

Instantly share code, notes, and snippets.

@jehoshua02
Created October 15, 2011 22:52
Show Gist options
  • Save jehoshua02/1290268 to your computer and use it in GitHub Desktop.
Save jehoshua02/1290268 to your computer and use it in GitHub Desktop.
Workflow for working with a team that doesn't use version control when only FTP access is available.
# 1) merge changes from live server
# create new branch for downloading live changes into
git branch live
git checkout live
# in working directory:
# delete old files
# download new/modified files
# (need magic here!)
# commit to branch
git commit -a -m 'download and merge changes from live server'
# merge live into master
git checkout master
git merge live
# remove branch (if desired)
git branch -d live
# 2) make changes in working directory (typical process)
# 3) deploy changes to live server
# merge changes as shown in step 1
# on ftp server:
# delete old files
# upload new/modified files
# (need magic here!)
##### 1) merge changes from live server #####
# create new branch for downloading live changes into
git branch live
git checkout live
# in working directory:
# delete old files
# download new/modified files
# (need magic here!)
# commit to branch
git commit -a -m 'download and merge changes from live server'
# merge live into master
git checkout master
git merge live
# remove branch (if desired)
git branch -d live
##### 2) make changes in working directory #####
##### 3) deploy changes to live server #####
# merge changes as shown in step 1
# on ftp server:
# delete old files
# upload new/modified files
# (need magic here!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment