Created
October 15, 2011 22:52
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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!) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### 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