-
Notifications
You must be signed in to change notification settings - Fork 0
/
GitHub tips.txt
52 lines (38 loc) · 1.59 KB
/
GitHub tips.txt
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
GitHub is basically the Wikipedia of code.
CONTRIBUTING:
Anyone can upload code:
see REPOSITORIES
Anyone can edit code, and the original coder can choose to incorporate edits:
1. Go to the repository where the code is located
2. Click Fork
3. Go to the file you want to edit
4. Click the Edit symbol (the pencil symbol on the top right)
5. Make your edits
6. Send Pull Request, so the original coder can review and incorporate your edits
You can view the forking/editing history of any code:
1. Go to the code repository
2. Next to Fork is a number, which is the number of forks it has. Click that number.
REPOSITORIES:
1. Create repository using GitHub Desktop
2. Add/Edit file in GitHub folder > repository
3. Commit and Sync changes in GitHub Desktop
OR
1. Clone repository from GitHub to Desktop
2. Add/Edit file
3. Commit and Sync
4. Check/review/incorporate pull requests at GitHub Website > repository > pull requests (among other things, all as tabs on the top bar)
EDIT/RENAME/DELETE FILES:
GitHub Website > file > (pencil icon or trash icon)
Commit to master if it's your own file.
Commit to new branch/request pull (so they can review your edits) if it's someone else's file.
EDIT REPOSITORIES:
GitHub Website > repository > (pencil icon)
RENAME REPOSITORIES:
GitHub Website > repository > settings > rename
DELETE REPOSITORIES:
GitHub Website > repository > settings > delete this repository
DOWNLOAD/CLONE REPOSITORIES:
(Terminal)
(go to directory you want to install it in)
$ git clone https://github.com/vkli/predicting-off-target-effects-of-CRISPR-Cas9
(or whatever repository you want to download)