-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathGit.Rpres
86 lines (58 loc) · 1.91 KB
/
Git.Rpres
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
Git
========================================================
author: I. Bartomeus
Git is happening
========================================================

Git, Github, Shell, Rstudio
===========================
- Git lives in your computer (after painfully installing it)
- You talk with git using the shell, [Rstudio](www.rstudio.com/), [sourcetree](www.sourcetreeapp.com) (Mac), [smartgit](www.syntevo.com/smartgit/) (PC)
- [Github](https://github.com/) is a popular online central repository. [Bitbucket](https://bitbucket.org/) too.
- [Github for researchers](https://education.github.com/discount_requests/new)
What it does
=============
- Keep track of your changes
- Allow you to keep a history
- Backup your project
- Simplify colaboration

Example
=======

Main barrier is wording
=======================
Git is hard, but worthy
Words you need the first day:
- stage (load the boxes)
- commit (load the truck) #write your history
Once commited changes are never lost!
- push (truck leaves)
- pull
- ...
More wording
============
- origin (central repository)
- branch
- master (the branch you are in)
- HEAD (pointers)
- checkout (move along the tree)
whatch video at te bottom after using Git for a month.
Workflow
========
pull (technically fetch+merge)-> work -> commit locally-> push to a central repo.
.gitignore (and pasword)
========================
- Is just a file saying what do you want git to ignore
- e.g. the file with your pasword!
More...
=======
- Branching
- fast-forward merge
- cherry-pick
- rebase
Resources
==========
[Git for Scientists](http://nyuccl.org/pages/GitTutorial/)
[More](http://arokem.github.io/2013-09-16-ISI/lessons/git-notebook/git-for-scientists.slides.html)
[Git happens](https://www.youtube.com/watch?v=Dv8I_kfrFWw) See it only after using git for a while.