-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstep_4.txt
More file actions
47 lines (33 loc) · 1.07 KB
/
step_4.txt
File metadata and controls
47 lines (33 loc) · 1.07 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
> read about branches
> https://guides.github.com/introduction/flow/
> create a branch: use your github name, case sensitive
$ git branch branch_name
> now, get into the newly created branch
$ git checkout branch_name
> create a new file: in patchwork/contributors
$ atom add-username.txt
> add and commit: just like before
$ git add .
$ git commit -m add_comment
> push your updates: to your fork
$ git push origin branch_name
> if you named your branch wrong: dont worry, be happy
> rename it with this
$ git branch -m new_branch_name
> to list all branches
$ git branch
> verify what branch you are on
$ git status
> pull any updates: yay
$ git pull remote_name remote_branch
> see what are the changes before you pull
$ git fetch --dry-run
> request pull from original repo
> green button, says compare and create pull request
> merge the branch into the main gh-pages
$ git checkout gh-pages
$ git merge branch_name
> delete the branch: you dont need it anymore
$ git branch -d branch_name
> delete the remote branch from github
$ git push remote_name --delete branch_name