-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMK_notes.txt
39 lines (28 loc) · 940 Bytes
/
MK_notes.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
see https://github.com/jayoung/MKtests_JY
##### git hub syncs:
# set up repo for the first time:
set up a new repo on the github website - I wish I had not done this step
made a README.md file
git init
git add --all .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/jayoung/MKtests_JY.git
git pull origin main --allow-unrelated-histories
git push -u origin main
# subsequent updates:
git add --all .
(the --all also lets it take care of files I remove locally, also removing them from the server)
git commit
opens up a file in vim where I can make notes about what I've changed.
"i" gets me into edit mode in vim
"escape" gets me out of edit mode
:wq to save and exit vim
git push
# after adding something to .gitignore
git rm --cached .DS_Store
git add --all .
git commit
git push
# cloning onto a new computer
git clone https://github.com/jayoung/MKtests_JY.git