-
Notifications
You must be signed in to change notification settings - Fork 0
/
github-commands.txt
52 lines (39 loc) · 1.06 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
https://github.com/pantaluna/esp32_bmp280_sensor_using_lib
C:\myiot\esp\esp32_bmp280_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_bmp280_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 push --set-upstream origin master
git remote show origin
git tag --annotate v0.80 --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_bmp280_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 "README.md"
git push origin --tags
git describe --tags --dirt
git rev-parse --short HEAD
git rev-parse HEAD
git status
```