-
Notifications
You must be signed in to change notification settings - Fork 1
/
github-commands.txt
53 lines (40 loc) · 1.2 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_sht3x_sensor_using_lib
C:\myiot\esp\esp32_sht3x_sensor_using_lib
SOP Upload new repo to GitHub
-----------------------------
1. BROWSER: create GitHub public repo at Github.com
2 MSYS2: git
```
DIR_REPO_NAME=esp32_sht3x_sensor_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
```
SOP Upload source updates to GitHub
-----------------------------------
```
DIR_REPO_NAME=esp32_sht3x_sensor_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.4 --message "Check the CRC of all returned data (earlier version only checked for Single Measurement, not when reading the Status Register."
git push origin --tags
git describe --tags --dirt
git rev-parse --short HEAD
git rev-parse HEAD
git status
```