-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
172 lines (131 loc) · 2.98 KB
/
index.html
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html>
<head>
<title>Version control</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="styles/style.css">
</head>
<body>
<textarea id="source">
name: title
class: middle, center
# Version control
.author[Jordan Suchow] / Tech talk #13 / Branch Typos
---
name: get git
class: middle
# Get git
+ Download it from http://git-scm.com/.
+ Install it.
+ Check that it's working (in terminal):
```bash
>> git --version
git version 1.8.3.4 (Apple Git-47)
```
+ Download a GUI, preferably http://mac.github.com/ or http://windows.github.com/.
+ Create a github account (http://github.com).
+ Send me ([email protected]) an email with your account name and I'll add you to the visionlab organization.
---
name: preferences
class: middle
# Set up git
+ In prefrences, set your name and email address.
+ Or through the command line:
```bash
>> git config --global user.name "Your Name Here"
```
```bash
>> git config --global user.email "[email protected]"
```
---
name: create a repo
class: middle
# Create a repository
+ GUI (File ==> Create new repository)
+ Command line:
```bash
>> git init
```
# Clone a repository
+ Through http://github.com.
+ Command line:
```bash
>> git clone https://github.com/visionlab/MemToolbox.git
```
+ Clone vs. download.
---
name: commits
class: middle
# Branches
+ Easy to create.
+ Helps to organize sets of changes.
+ Easy to switch between branches.
+ GUI: Branches ==> +
+ Command line:
```bash
>> git branch new-branch
>> git checkout new-branch
```
---
name: commits
class: middle
# Commits
+ A set of changes to the current version.
+ Can "stage" some changes w/o staging them all.
+ Each includes a commit message.
+ Committing is not pushing.
+ Command line:
```bash
>> git commit -m "This is ****ing awesome."
```
---
name: pull requests
class: middle
# Pull request
+ Contribute your changes.
+ A Github thing.
---
name: issues
class: middle
# Issues
+ Bug tracking on Github.
+ Closing issues with commit messages.
---
name: practice
class: middle
# Practice.
Do one of the following things and submit a pull request.
+ Fix the typo on slide 3 (and remove this line).
+ Remove the period on this slide's title.
+ Fix the name of the slide about branches.
+ Add a README with a line about what this is.
+ Add a license file with an MIT license.
---
name: vocabulary
class: middle
# Vocabulary
+ git
+ github
+ repository (repo)
+ commit
+ commit message
+ push
+ branch
+ fork
+ pull request
+ issue
---
name: learning more
class: middle
# Learning more
+ The book. http://git-scm.com/book
+ The tutorial. http://try.github.io/levels/1/challenges/1
+ The game. https://github.com/Gazler/githug
</textarea>
<script src="scripts/remark.min.js" type="text/javascript">
</script>
<script type="text/javascript">
var slideshow = remark.create({ "highlightStyle": "tomorrow-night-bright" });
</script>
</body>
</html>