-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProject_Management.Rpres
More file actions
409 lines (305 loc) · 16.9 KB
/
Project_Management.Rpres
File metadata and controls
409 lines (305 loc) · 16.9 KB
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
Data Management
========================================================
For Scientific Research
[//]: # (author: Brian High, UW DEOHS)
[//]: # (date: 2014-06-04)
[//]: # (license: CC0 1.0 Universal,linked-content/images)
[//]: # (note: License does not apply to external content such as quoted material, linked web pages, images, or videos. These are licensed separately by their authors, publishers or other copyright holders. See attribution links for details.)
[//]: # (note: Any of the trademarks, service marks, collective marks, design rights, personality rights, or similar rights that are mentioned, used, or cited in the presentations and wiki of the Data Management For Scientific Research workshop/course are the property of their respective owners.)
[//]: # (homepage: https://github.com/brianhigh/data-workshop)
<p style="width: 600px; float: right; clear: right; margin-bottom: 5px; margin-left: 10px; text-align: right; font-weight: bold; font-size: 14pt;"><img src="http://www.stanza.co.uk/body/stanza_+BODY-copy.jpg" alt="stanza body copy" style="padding-bottom:0.5em;" />Photo: © <a href="http://www.stanza.co.uk/body/index.html">Stanza</a>. Used with permission.</p>
Project Management and Version Control
========================================================
> Project management is the process and activity of planning, organizing, motivating, and controlling resources, procedures and protocols to achieve specific goals in scientific or daily problems.
Source: [Wikipedia](http://en.wikipedia.org/wiki/Project_management)
<p style="width: 800px; float: left; clear: right; margin-bottom: 5px; margin-left: 10px; text-align: right; font-weight: bold; font-size: 14pt;"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/bb/Project_Management_%28phases%29.png/800px-Project_Management_%28phases%29.png" alt="Traditional Project Management (phases)" style="padding-bottom:0.5em;" />Image: <a href=http://commons.wikimedia.org/wiki/File:Project_Management_%28phases%29.png">Alphamu57 / Wikimedia</a></p>
"Traditional" Approach
========================================================
1. Initiation
2. Planning and design
3. Execution and construction
4. Monitoring and controlling systems
5. Completion
<p style="width: 800px; float: left; clear: right; margin-bottom: 5px; margin-left: 10px; text-align: right; font-weight: bold; font-size: 14pt;"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/bb/Project_Management_%28phases%29.png/800px-Project_Management_%28phases%29.png" alt="Traditional Project Management (phases)" style="padding-bottom:0.5em;" />Image: <a href=http://commons.wikimedia.org/wiki/File:Project_Management_%28phases%29.png">Alphamu57 / Wikimedia</a></p>
"Agile" Approach
========================================================
* Plan
* Collaborate
* Deliver
<p style="width: 800px; float: left; clear: right; margin-bottom: 5px; margin-left: 10px; text-align: right; font-weight: bold; font-size: 14pt;"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/50/Agile_Project_Management_by_Planbox.png/800px-Agile_Project_Management_by_Planbox.png" alt="Agile Project Management" style="padding-bottom:0.5em;" />Image: <a href="http://commons.wikimedia.org/wiki/File:Agile_Project_Management_by_Planbox.png">Planbox / Fongamanda / Wikimedia</a></p>
Project Management Constraints
=================================================
* Scope
* Time (Schedule)
* Cost
* Quality
<p style="width: 613px; float: left; clear: right; margin-bottom: 5px; margin-left: 10px; text-align: right; font-weight: bold; font-size: 14pt;"><img src="http://upload.wikimedia.org/wikipedia/commons/a/a6/The_triad_constraints.jpg" alt="Project Management Constraints" style="padding-bottom:0.5em;" />Image: <a href="http://commons.wikimedia.org/wiki/File:The_triad_constraints.jpg">John Manuel Kennedy T. / Wikimedia</a></p>
Redmine: Self-Hosted Project Management
=================================================

GitHub: Cloud-Hosted Project Management
=================================================

Redmine and GitHub Common Features
========================================================
* Web-based
* Multi-user
* User/role management
* Workflow management
* Documentation (wiki, files)
* Issue tracking (bug reporting)
* Notifications (email)
* Status reports and charts
* Version control
Version Control Systems (VCS)
========================================================
... allow you to:
* Keep a log of all "commits"
* Store complete history
* Retrieve old versions
* Compare with "diff"
* Branching and merging
* Local, centralized, or distributed
---
<p style="width: 200px; float: left; clear: right; margin-bottom: 5px; margin-left: 10px; text-align: right; font-weight: bold; font-size: 14pt;"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Revision_controlled_project_visualization-2010-24-02.svg/200px-Revision_controlled_project_visualization-2010-24-02.svg.png" alt="revision control branching" style="padding-bottom:0.5em;" />Image: <a href="http://commons.wikimedia.org/wiki/File:Revision_controlled_project_visualization-2010-24-02.svg">JSami Kerola/ Moxfyre / Echion2 / Wikimedia</a></p>
Git: A popular, free VCS
========================================================
* Fast, compact, and scalable
* Excellent branching and merging
* Distributed
* Runs on all major platforms
* Several free hosting options
* Integrates well (with e.g. Redmine)
* Many graphical clients available
Git: Command Line Interface (CLI)
========================================================

```git log --graph --decorate --all --pretty=oneline```
Git: Graphical User Interface (GUI)
========================================================

Hands-on Group Exercise: Using Git
========================================================
* [git config](https://www.kernel.org/pub/software/scm/git/docs/git-config.html)
* [git init](https://www.kernel.org/pub/software/scm/git/docs/git-init.html)
* [git clone](https://www.kernel.org/pub/software/scm/git/docs/git-clone.html)
* [git status](https://www.kernel.org/pub/software/scm/git/docs/git-status.html)
* [git add](https://www.kernel.org/pub/software/scm/git/docs/git-add.html)
* [git commit](https://www.kernel.org/pub/software/scm/git/docs/git-commit.html)
* [git log](https://www.kernel.org/pub/software/scm/git/docs/git-log.html)
* [git mv](https://www.kernel.org/pub/software/scm/git/docs/git-mv.html)
* [git diff](https://www.kernel.org/pub/software/scm/git/docs/git-diff.html)
* [git checkout](https://www.kernel.org/pub/software/scm/git/docs/git-checkout.html)
---
* [git remote](https://www.kernel.org/pub/software/scm/git/docs/git-remote.html)
* [git push](https://www.kernel.org/pub/software/scm/git/docs/git-push.html)
* [git pull](https://www.kernel.org/pub/software/scm/git/docs/git-pull.html)
* [git tag](https://www.kernel.org/pub/software/scm/git/docs/git-tag.html)
* [git branch](https://www.kernel.org/pub/software/scm/git/docs/git-branch.html)
* [git stash](https://www.kernel.org/pub/software/scm/git/docs/git-stash.html)
* [git fetch](https://www.kernel.org/pub/software/scm/git/docs/git-fetch.html)
* [git rebase](https://www.kernel.org/pub/software/scm/git/docs/git-rebase.html)
* [git reset](https://www.kernel.org/pub/software/scm/git/docs/git-reset.html)
* [git revert](https://www.kernel.org/pub/software/scm/git/docs/git-revert.html)
git clone
========================================================
Clone a repository into a new directory
```{bash}
mkdir git-test
cd git-test
git clone ssh://high@git.deohs.washington.edu/opt/git/ehit/dataman.git
```
```
Cloning into 'dataman'...
remote: Counting objects: 637, done.
remote: Compressing objects: 100% (316/316), done.
remote: Total 637 (delta 338), reused 602 (delta 320)
Receiving objects: 100% (637/637), 18.06 MiB | 23.93 MiB/s, done.
Resolving deltas: 100% (338/338), done.
```
git add
========================================================
Add file contents to the index
```{bash}
cd dataman
echo "This is a test file." > test-file.txt
git add test-file.txt
```
git status
========================================================
Show the working tree status
```{bash}
git status
```
```
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: test-file.txt
#
```
git commit
========================================================
Record changes to the repository
```{bash}
git commit -m "Adding new test file"
```
```
[master fa1e105] Adding new test file
1 file changed, 1 insertion(+)
create mode 100644 test-file.txt
```
```{bash}
git status
```
```
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
```
git push
========================================================
Update remote refs along with associated objects
```{bash}
git push
```
```
Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 296 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
To ssh://high@git.deohs.washington.edu/opt/git/ehit/dataman.git
44d1fca..fa1e105 master -> master
```
git log
========================================================
Show commit logs
```{bash}
git log
```
```
commit fa1e10522de9ea3b21b304d16ee4d3fdcece71b8
Author: Brian High <high@uw.edu>
Date: Wed May 28 16:16:58 2014 -0700
Adding new test file
...
```
git log (graph, decorate, all, oneline)
========================================================
```{bash}
git log --graph --decorate --all --pretty=oneline
```

git diff
========================================================
Show changes between commits, commit and working tree, etc
```{bash}
echo "There's more to a good haiku" >> test-file.txt
echo "than having three lines." >> test-file.txt
git diff
```
```
diff --git a/test-file.txt b/test-file.txt
index 6de7b8c..4844fe6 100644
--- a/test-file.txt
+++ b/test-file.txt
@@ -1 +1,3 @@
This is a test file.
+There's more to a good haiku
+than having three lines.
```
```git diff``` shows a [unified diff](http://en.wikipedia.org/wiki/Diff#Unified_format).
diff as seen in Redmine and GitHub
========================================================
Redmine:


---
GitHub:

Redmine and Git Integration
=========================================================
Redmine integrates repositories using special syntax in issues and commits.
* [Referencing issues in commit messages](http://www.redmine.org/projects/redmine/wiki/RedmineSettings#Referencing-issues-in-commit-messages)
* [How to link to Git commit?](http://www.redmine.org/boards/2/topics/15536?r=35831)

---

Closing Issues with Git Commits
=========================================================
```{bash}
git commit -m "Added Project Management Presentation, closes #2741, refs #2732"
```

Discussion
========================================================
We will discuss your experiences with Git. Is version control worth the effort?
<p style="width: 275px; float: left; clear: right; margin-bottom: 5px; margin-left: 10px; text-align: right; font-weight: bold; font-size: 14pt;"><img src="http://upload.wikimedia.org/wikipedia/commons/e/eb/User_journey_discussion.png" alt="discussion" style="padding-bottom:0.5em;" />Graphic: <a href="http://upload.wikimedia.org/wikipedia/commons/e/eb/User_journey_discussion.png">Jagbirlehl / Wikimedia</a></p>
In the Coming Sessions...
========================================================
* Data Security
* Systems Administration
Action Items (videos, readings, and tasks)
========================================================
<table>
<tr border=0>
<td width="128" valign="middle"><img width="128" height="128" alt="watching" src="images/watching.jpg">
</td>
<td valign="middle">
<ul>
<li>TED: <a href="https://www.youtube.com/watch?v=hqKafI7Amd8">Hacking [1]</a>, <a href="http://www.ted.com/talks/avi_rubin_all_your_devices_can_be_hacked#t-258447">Hacking Devices [2]</a>, and <a href="https://www.youtube.com/watch?v=UPmVTPyE5DM">InfoSec [3]</a>
<li><a href="https://www.youtube.com/watch?v=IoXoHlI86rQ">Schneier on Security [4]</a> and <a href="https://www.youtube.com/watch?v=1ZnKcDnapuY">Internet, Privacy & Security [5]</a>
<li><a href="https://www.youtube.com/watch?v=x-jvuL7FYl8">Security Fundamentals [6]</a> and <a href="https://www.youtube.com/watch?v=nJtbmk5cLcY">Data Security Awareness [7]</a>
<li>Skim Playlists: <a href="https://www.youtube.com/watch?v=IaOMy-FqpLY&list=PLUKTA1-FvEn_wYfQEHM4rNwxXyqMpzyU6">Encryption</a> and <a href="https://www.youtube.com/watch?v=cf1FrIs3Ero&list=PLxttiYSVvMQxjt7Fho8YyAvjFizMbnjTO">Privacy Security Forum</a>
</ul>
</td>
</tr>
<tr>
<td width="128" valign="middle"><img width="128" height="128" alt="readings" src="images/reading.jpg">
</td>
<td valign="middle">
<ul>
<li><A href="http://practicalcomputing.org/about">PCfB</a> textbook: Chapter 21. Installing Software
<li>Skim: <a href="http://seattle.bibliocommons.com/item/show/2897906030_sams_teach_yourself_sql_in_10_minutes,_fourth_edition">SAMS Teach Yourself SQL on 10 Minutes</a>: Ch. 15-18
<li>Optional- Skim: <a href="http://www.amazon.com/dp/0123747309">RDDaI3CE</a> textbook: Chapter 15
<li>Optional- Skim: <a href="http://www.amazon.com/dp/0123756979">SQLCE3</a> textbook: Chapters 9-12
</ul>
</td>
</tr>
<tr>
<td width="128" valign="middle"><img width="128" height="128" alt="tasks" src="images/tasks.jpg"></td>
<td valign="middle">
<ul>
<li>Clone your Git repo. Add/commit/push your project code.
<li>Make a branch, change the branch, and merge into "master".
<li>Do the same from a graphical Git client. Which is easiest?
<li>Make Redmine issues that reference commits and vice-versa.
</ul>
</td>
</tr>
</table>
See Also
========================================================
* [Project Management](http://en.wikipedia.org/wiki/Project_management), [Version Control](http://en.wikipedia.org/wiki/Version_control), [diff](http://en.wikipedia.org/wiki/Diff), and [patch](http://en.wikipedia.org/wiki/Patch_%28Unix%29)
* [Mastering Redmine](http://seattle.bibliocommons.com/item/show/2920711030_mastering_redmine) eBook
* [Version Control With Git, 2nd Edition](http://seattle.bibliocommons.com/item/show/2847665030_version_control_with_git,_2nd_edition) eBook
* [Git - Version Control for Everyone](http://seattle.bibliocommons.com/item/show/2937299030_git_-_version_control_for_everyone) eBook
* [Git Magic](http://www-cs-students.stanford.edu/~blynn/gitmagic/) eBook
* Project Pages: [Redmine](http://www.redmine.org/), [Git](http://git-scm.com/), [GitHub](https://github.com/)
* [Implementing Redmine for Secure Project Management](http://www.sans.org/reading-room/whitepapers/testing/implementing-redmine-secure-project-management-34122)
* [Code School - Try Git](https://try.github.io/levels/1/challenges/1) - 15 minute online Git tutorial
* [6 Useful Graphical Git Client for Linux](http://www.maketecheasier.com/6-useful-graphical-git-client-for-linux/) Guide
* [Git Cheat Sheet](http://www.cheat-sheets.org/saved-copy/git-cheat-sheet.pdf)
* [Introduction to Git](www.youtube.com/watch?v=ZDR433b0HJY) video
* [Getting Started with GitHub + Git](https://www.youtube.com/watch?v=DVDLoe_2MBc) video
Questions and Comments
========================================================
<p style="width: 380px; float: right; clear: right; margin-bottom: 5px; margin-left: 10px; text-align: right; font-weight: bold; font-size: 14pt;"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Happy_Question.svg/380px-Happy_Question.svg.png" alt="question" style="padding-bottom:0.5em;" />Image: <a href=http://commons.wikimedia.org/wiki/File:Happy_Question.svg">© Nevit Dilmen</a> / Wikimedia</p>
Some Parting Words
========================================================
> Version control is the lab notebook of the digital world.
--[Software Carpentry](http://software-carpentry.org/v5/novice/git/01-backup.html)
<p style="width: 851px; float: right; clear: right; margin-bottom: 5px; margin-left: 10px; text-align: right; font-weight: bold; font-size: 14pt;"><img src="images/the_evolution_of_my_lab_notebook_steven_roberts_sr320_At_uw_dot_edu.png" alt="steven roberts lab notebook" style="padding-bottom:0.5em;" />Image: <a href="http://oystergen.es/data/">Steven Roberts</a></p>