-
Notifications
You must be signed in to change notification settings - Fork 3
/
github-commands.txt
53 lines (40 loc) · 1.08 KB
/
github-commands.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
53
https://github.com/pantaluna/esp32_jsnsr04t_using_lib
C:\myiot\esp\esp32_jsnsr04t_using_lib
SOP Upload new repo to GitHub
-----------------------------
1. BROWSER: create GitHub public repo at github.com
2 MSYS2: git
```
DIR_REPO_NAME=esp32_jsnsr04t_using_lib
cd /c/myiot/esp/${DIR_REPO_NAME}
pwd
git init
git add .
git commit -m "First commit"
git remote add origin https://github.com/pantaluna/${DIR_REPO_NAME}.git
git config credential.helper store
git push --set-upstream origin master
git remote show origin
git tag --annotate v1.0 --message "First tag"
git push origin --tags
git describe --tags --dirt
git rev-parse --short HEAD
git rev-parse HEAD
git status
```
***NOTYETUSED*** SOP Upload source updates to GitHub
-----------------------------------
```
DIR_REPO_NAME=esp32_jsnsr04t_using_lib
cd /c/myiot/esp/${DIR_REPO_NAME}
git add .
git commit -m "Updated"
git config credential.helper store
git push --set-upstream origin master
git tag --annotate v1.1 --message "..."
git push origin --tags
git describe --tags --dirt
git rev-parse --short HEAD
git rev-parse HEAD
git status
```