Académique Documents
Professionnel Documents
Culture Documents
whygitisbetterthanx?
awesome branching! the staging area it's local!
setup...
git config --global user.name "Keith Mascarenhas" git config --global user.email "keith.mascarenhas@efinlab.com"
lets begin!
cd app git init
local staging..
Make changes to app.. git status git add . git commit -m 'made xyz change' OR git diff
[stages All]
branching! ^^
git branch <new_branch_name> git checkout <branch_name> directory to this branch] [creates branch] [switch current working
branching! ^^
git checkout master + git branch issue53 + git checkout issue53 = git checkout -b issue53 master
merging! ^^
git checkout master git merge issue53
deleting branches..
git branch -d <branch_name> [Recommended]
setting up unfuddle
cd ../app/ git init git remote add unfuddle git@efl.unfuddle.com:efl/app-dev.git git config remote.unfuddle.push refs/heads/master:refs/heads/master
[svn commit]
Make changes in xyz.. git commit -am "changed xyz" git push <-> [svn commit]
[svn update]
git fetch + git merge origin/master = git pull git pull origin/master <-> [svn update] git pull origin [branch_name]
tagging..
git tag -a v1.0 git tag [list them] git tag -l 'v1.4.2.*'
v1.4.2.1
v1.4.2.2
v1.4.2.3 v1.4.2.4
misc..
git log [--oneline] [--graph] [--all] [--stat]
git log issue53 ^master [incoming: origin/master ^master] git log issue52 ^issue53 [outgoing: master ^origin/master]
git roundup!
git config
git init
git clone
git status
git add
git commit
git branch
git checkout
git merge
git push
git fetch
git merge
our workflow
(app-dev)
(app-stg)
(app-prod)
app85
app85.0.1
app87
(app-dev)
(app-stg)
(app-prod)
app85
app85.0.1
app87
(app-dev)
(app-stg)
(app-prod)
app85
don'
t freak out!
app85.0.1
app87
(app-dev)
(app-stg)
(app-prod)
app85
app85.0.1
app87
(app-dev) (app-dev)
(app-prod)
app85
main branche s
app87
app89
feature branche s
(app-dev)
(app-prod)
app85
app87
--no-ff?
(app-dev)
(app-stg)
(app-prod)
app85
app85.0.1
app87
(app-dev)
(app-stg)
(app-prod)
app85
name: release-*
app85.0.1
hotfix: branch off master merge back into develop & master
name: hotfix-*
app87
thats it!