SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
Why and how to use version control with an ExpressionEngine website. Version control is essential to good development practices, but setting it up with a database-driven website can be tricky.
Why and how to use version control with an ExpressionEngine website. Version control is essential to good development practices, but setting it up with a database-driven website can be tricky.
3.
What is version control?
A program that tracks changes to files and
folders for you.
4.
Also goes by these
names.
Source Control Manager (SCM)
Revision Control System (RCS)
Version Control System (VCS)
That-Thing-That-Just-Saved-My-Ass
5.
Different flavors?
Yup. Each has its own way of tracking your
changes. Here are a few:
CVS - SVN - Git - Mercurial - Bazaar
Darcs - Perforce - Fossil - BitKeeper
http://en.wikipedia.org/wiki/List_of_revision_control_software
6.
What kinds of files?
Text! But also:
Graphics
Binary
WHATEVER YOU WANT.
13.
2. Install it on your
computer.
http://git-scm.com/download
14.
3. Set up a repository
for your existing project.
$
cd
~/Sites/myproject Change to the project folder.
$
git
init Initialize the repository.
$
git
add
. Add everything in the project folder
to the repository.
$
git
commit
-‐m
"Initial
commit." Make your first commit.
15.
4. Make some changes,
and commit them.
$
git
status Tell me what’s changed. (New file!)
$
git
add
index.html Add the new file to the repository.
$
git
status Tell me what’s changed. (Just making
sure we didn’t miss anything.)
$
git
commit
-‐m
"Added
homepage." Commit the change.
16.
5. Rinse and repeat until
you’re ready to share.
17.
A Basic Workflow
One way to use version control in practice,
with actual live websites.
18.
1. Define your
environments.
Some popular ones:
- Local
- Development (overkill for team of one)
- Staging (can be same as Development)
- Live
27.
Further Resources
New to version control? Check out Version Control
for Designers: http://hoth.entp.com/output/git_for_designers.html
Not new to version control, but new to Git? Check
out Git Reference: http://gitref.org/
More on the topic of Git and EE:
http://gititon.masugadesign.com/ <-- A++
WOULD RECOMMEND
http://j.mp/ee2multiserver