|
1 | 1 | # Outline |
2 | 2 |
|
3 | 3 | 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/) |
17 | 8 | 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` |
25 | 13 | 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` |
29 | 16 | 4. Checkout a branch |
30 | | -* `git checkout dev` |
31 | | - |
| 17 | + * `git checkout dev` |
32 | 18 | 5. Create a feature branch |
33 | | -* `git checkout -b my-feature` |
34 | | - |
| 19 | + * `git checkout -b my-feature` |
35 | 20 | 6. Modify files |
36 | | - |
37 | 21 | 7. Check the status |
38 | | -* `git status` |
39 | | - |
| 22 | + * `git status` |
40 | 23 | 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` |
45 | 27 | 9. Commit staged changes |
46 | | -* `git commit -m 'my message` |
47 | | - |
| 28 | + * `git commit -m 'my message` |
48 | 29 | 10. Check the log |
49 | | -* `git log` |
50 | | - |
| 30 | + * `git log` |
51 | 31 | 11. Merge into devel |
52 | | -* `git checkout dev` |
53 | | -* `git merge my-feature` |
54 | | - |
| 32 | + * `git checkout dev` |
| 33 | + * `git merge my-feature` |
55 | 34 | 12. Demonstration of push |
56 | | - |
57 | 35 | 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 |
61 | 38 | 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` |
69 | 45 | 15. Tagging the release |
70 | | -* `git checkout master` |
71 | | -* `git tag 1.0` |
72 | | - |
| 46 | + * `git checkout master` |
| 47 | + * `git tag 1.0` |
73 | 48 | 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 |
76 | 50 | 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` |
90 | 60 | 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 |
97 | 66 | 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) |
106 | 75 |
|
107 | | -* Twitter @Brain_Bacon |
108 | | - - [`https://twitter.com/Brain_Bacon`](https://twitter.com/Brain_Bacon) |
0 commit comments