-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstructions.nt
executable file
·47 lines (40 loc) · 1.09 KB
/
instructions.nt
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
PROCESS: CREATE A NEW REPOSITORY ON THE COMMAND LINE (HTTP) {
echo "# MyStuff" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/Primatebuddy/MyStuff.git
git push -u origin master
}
PROCESS: CREATE A NEW REPOSITORY ON THE COMMAND LINE (SSH) {
//create a new repository on the command line
echo "# Other-Stuff" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:Primatebuddy/Other-Stuff.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin [email protected]:Primatebuddy/Other-Stuff.git
git push -u origin master
}
PROCESS: COMMIT {
git commit -m "Commit message"
git push -u origin master
}
PROCESS: ADD {
//to add everything
git add -A
//to add a single thing
git add "<single thing>"
//do a commit process from above.
)
WORKFLOW: BASIC {
/*
- Checkout file(s) (optional since only me is doing this)
- work on file(s)
- add files to stage
- commit files locally
- push to github
*/
}