Skip to content

Commit 02cf6ea

Browse files
committed
Merge branch 'master' of github.com:bajesse/git-workshop into dev
2 parents 7822f4a + 0994674 commit 02cf6ea

File tree

1 file changed

+53
-86
lines changed

1 file changed

+53
-86
lines changed

README.md

Lines changed: 53 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,75 @@
11
# Outline
22

33
1. Installation
4-
* OSX installation:
5-
- Standard installation
6-
7-
[`http://code.google.com/p/git-osx-installer`](http://code.google.com/p/git-osx-installer)
8-
9-
- With Macports:
10-
11-
sudo port install git-core +svn +doc +bash_completion +gitweb
12-
13-
* Windows installation:
14-
15-
[`http://msysgit.github.com/`](http://msysgit.github.com/)
16-
4+
* OSX installation:
5+
- Standard installation [`http://code.google.com/p/git-osx-installer`](http://code.google.com/p/git-osx-installer)
6+
- With Macports: `sudo port install git-core +svn +doc +bash_completion +gitweb`
7+
* Windows installation: [`http://msysgit.github.com/`](http://msysgit.github.com/)
178
2. Setup
18-
* Identity
19-
20-
$ git config --global user.name "Brian Jesse"
21-
$ git config --global user.email user@example.com
22-
* Configuration Files
23-
`~/.gitconfig`
24-
9+
* Identity
10+
- `$ git config --global user.name "Brian Jesse"`
11+
- `$ git config --global user.email user@example.com`
12+
* Configuration Files `~/.gitconfig`
2513
3. Cloning
26-
* `git clone http://github.com/bajesse/git-workshop.git`
27-
* `cd git-workshop`
28-
14+
* `git clone http://github.com/bajesse/git-workshop.git`
15+
* `cd git-workshop`
2916
4. Checkout a branch
30-
* `git checkout dev`
31-
17+
* `git checkout dev`
3218
5. Create a feature branch
33-
* `git checkout -b my-feature`
34-
19+
* `git checkout -b my-feature`
3520
6. Modify files
36-
3721
7. Check the status
38-
* `git status`
39-
22+
* `git status`
4023
8. Stage files
41-
* `git add index.html`
42-
* `git add style.css`
43-
* `git status`
44-
24+
* `git add index.html`
25+
* `git add style.css`
26+
* `git status`
4527
9. Commit staged changes
46-
* `git commit -m 'my message`
47-
28+
* `git commit -m 'my message`
4829
10. Check the log
49-
* `git log`
50-
30+
* `git log`
5131
11. Merge into devel
52-
* `git checkout dev`
53-
* `git merge my-feature`
54-
32+
* `git checkout dev`
33+
* `git merge my-feature`
5534
12. Demonstration of push
56-
5735
13. Create a release branch
58-
* `git checkout -b release-1`
59-
* Modify branch with bugfixes and commit to release
60-
36+
* `git checkout -b release-1`
37+
* Modify branch with bugfixes and commit to release
6138
14. Merge into master and dev
62-
* `git checkout master`
63-
* `git merge release-1`
64-
* `git push origin master`
65-
* `git checkout dev`
66-
* `git merge release-1`
67-
* `git push origin dev`
68-
39+
* `git checkout master`
40+
* `git merge release-1`
41+
* `git push origin master`
42+
* `git checkout dev`
43+
* `git merge release-1`
44+
* `git push origin dev`
6945
15. Tagging the release
70-
* `git checkout master`
71-
* `git tag 1.0`
72-
46+
* `git checkout master`
47+
* `git tag 1.0`
7348
16. Managing hotfixes
74-
* the same as a release branch, but it is branched from master and merged back to dev and master
75-
49+
* the same as a release branch, but it is branched from master and merged back to dev and master
7650
17. Merge conflict resolution
77-
* Git will create a new commit when merge conflicts occur
78-
* Any files that now have merge conflicts will have resolution markers in them
79-
* Git will also add local, remote, and base versions of the file for you to diff against
80-
* When you are satisfied with the merge run
81-
82-
$ git add <filename>
83-
$ git commit
84-
85-
* The mergetool may come in handy
86-
87-
$ git config --global merge.tool vimdiff
88-
$ git mergetool
89-
51+
* Git will create a new commit when merge conflicts occur
52+
* Any files that now have merge conflicts will have resolution markers in them
53+
* Git will also add local, remote, and base versions of the file for you to diff against
54+
* When you are satisfied with the merge run
55+
- `$ git add <filename>`
56+
- `$ git commit`
57+
* The mergetool may come in handy
58+
- `$ git config --global merge.tool vimdiff`
59+
- `$ git mergetool`
9060
18. Other concepts
91-
* `git help`
92-
* Creating new repositories with `git init`
93-
* Ignoring files with `.gitignore`
94-
* `git stash` and `git stash pop`
95-
* Adding/removing remote repositories
96-
61+
* `git help`
62+
* Creating new repositories with `git init`
63+
* Ignoring files with `.gitignore`
64+
* `git stash` and `git stash pop`
65+
* Adding/removing remote repositories
9766
19. Resources
98-
* Pro Git (Book)
99-
- Free online [`http://git-scm.com/book`](http://git-scm.com/book)
100-
* Try git online
101-
- [`http://try.github.io/levels/1/challenges/1`](http://try.github.io/levels/1/challenges/1)
102-
* Git Immersion
103-
- [`http://gitimmersion.com/lab_01.html`](http://gitimmersion.com/lab_01.html)
104-
* Check out the presentation
105-
- [`http://brian-jesse.com/gittalk`](http://brian-jesse.com/gittalk)
67+
* Pro Git (Book)
68+
- Free online [`http://git-scm.com/book`](http://git-scm.com/book)
69+
* Try git online
70+
- [`http://try.github.io/levels/1/challenges/1`](http://try.github.io/levels/1/challenges/1)
71+
* Git Immersion
72+
- [`http://gitimmersion.com/lab_01.html`](http://gitimmersion.com/lab_01.html)
73+
* Check out the presentation
74+
- [`http://brian-jesse.com/gittalk`](http://brian-jesse.com/gittalk)
10675

107-
* Twitter @Brain_Bacon
108-
- [`https://twitter.com/Brain_Bacon`](https://twitter.com/Brain_Bacon)

0 commit comments

Comments
 (0)