-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitworkflow.txt
More file actions
48 lines (41 loc) · 886 Bytes
/
gitworkflow.txt
File metadata and controls
48 lines (41 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
1. Begin new feature
git checkout -b some-feature develop
git status
git add <some-file>
git commit
2. Mary finishes her feature
git pull origin develop
git checkout develop
git merge some-feature
git push
git branch -d some-feature
3. Mary begins to prepare a release
git checkout -b release-0.1 develop
4. Mary finishes the release
git checkout master
git merge release-0.1
git push
git checkout develop
git merge release-0.1
git push
git branch -d release-0.1
5. Mary tag a release
git tag -a 0.1 -m "Initial public release" master
git push --tags
6. End-user discovers a bug
git checkout -b issue-#001 master
# Fix the bug
git add <some-file>
git commit
##
git checkout master
git merge issue-#001
git push
--
git checkout develop
git merge issue-#001
git push
git branch -d issue-#001
7. Export archive for deployment
git checkout master
git archive -o /tmp/file.zip master