Академический Документы
Профессиональный Документы
Культура Документы
the Workflow of
Version Control
›
presented by TOWER Version control with Git - made easy
The Basics
1
2
File Status
Files that aren’t yet under version
Work on Your Files
?
control are called “untracked”…
Modify, rename and delete files or add new …while files that your version
ones. Do all of this in your favorite editor / control system already knows
IDE / file browser – there‘s nothing to watch about are “tracked” files.
out for in this step! 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 ones # login.html
or delete old ones? #
no changes added to commit
Understanding Branches
BUGFIX #32 C4
FEATURE A C1 C3 C5 C7
FEATURE B C2 C6
2 HEAD Branch
C6 C7 feature-b
Integrate Changes
$ git merge <branch-to-integrate>
LOCAL REMOTE
Stay Up-To-Date
SHARE WORK
COMPUTER SERVER
VIEW HISTORY
$ git fetch <remote> ADD & DELETE
BRANCHES
To upload the local changes you made in your Version control with Git - made easy
current HEAD branch, all you have to do is 30-day free trial available at
call “git push”. www.git-tower.com