Professional Documents
Culture Documents
the Workflow of
Version Control
presented by Tower - the best Git client for Mac and Windows
The Basics
1
2
File Status
Files that aren’t yet under
Work on Your Files version control are called
Modify, rename and delete files or add new ? “untracked”…
ones. Do all of this in your favorite editor …while files that your version
/ IDE / file browser – there‘s nothing to control system already knows
watch out for in this step! about are “tracked” files.
A tracked file can either be
“unmodified” (meaning it wasn’t
changed since the last commit)...
m ...or “modified” (meaning it has
local changes since it was last
committed).
3
$ git status
Keep the Overview #
# Changes not staged for commit:
$ git status # modified: about.html
# deleted: robots.txt
The “git status” command tells you what #
happened since the last commit: which files # Untracked files:
did you change? Did you create any new # login.html
ones or delete old ones? #
no changes added to commit
Understanding Branches
BUGFIX #32 C4
C1 C3 C5 C7
FEATURE B C2 C6
2 HEAD Branch
C6 C7 feature-b
Integrate Changes
$ git merge <branch-to-integrate>