-
Notifications
You must be signed in to change notification settings - Fork 8
/
github-commands-starter-kit.txt
94 lines (71 loc) · 3.02 KB
/
github-commands-starter-kit.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
https://github.com/pantaluna/esp32-mjd-starter-kit
C:\myiot\esp32-mjd-starter-kit
***SPECIAL*** This is in another parent directory than the usual ESP32 projects!
--------------------------------------------------------------------------------
***SPECIAL*** SOP: 0. Update README.md from the Starter Kit
-----------------------------------------------------------
README.md
***SPECIAL*** SOP: 1. Clean projects.
-------------------------------------
@important First clean the Eclipse projects
#--MSYS Make all projects (helper: clean script can be run separately)
cd /c/myiot/esp/
./clean-all.sh
***SPECIAL*** SOP: Manually COPY the artifacts in this super repository
----------------------------------------------
@important Not my private projects!
Windows Explorer: copy paste folders.
**SPECIAL*** SOP Remove ./.git/* - ./build/* - ./.settings/* - .gitignore - .cproject - .project - sdkconfig - sdkconfig.old from embedded Projects except from the main repository!
------------------------------------------------------------------------------------------------------------
##MSYS2
DIR_REPO_NAME=esp32-mjd-starter-kit
cd /c/myiot/${DIR_REPO_NAME}
pwd
#directories
find . -type d -name '.git' ! -path './.git' -exec rm -rf {} \;
find . -type d -name 'build' ! -path './build' -exec rm -rf {} \;
find . -type d -name '.settings' ! -path './.settings' -exec rm -rf {} \;
#files
find . -type f -name '.gitignore' ! -path './.gitignore' -exec rm -f {} \;
find . -type f -name '.cproject' ! -path './.cproject' -exec rm -f {} \;
find . -type f -name '.project' ! -path './.project' -exec rm -f {} \;
find . -type f -name 'sdkconfig' ! -path './sdkconfig' -exec rm -f {} \;
find . -type f -name 'sdkconfig.old' ! -path './sdkconfig.old' -exec rm -f {} \;
SOP Upload new repo to GitHub
-----------------------------
1. BROWSER: create GitHub public repo at Github.com
2 MSYS2: git
```
DIR_REPO_NAME=esp32-mjd-starter-kit
cd /c/myiot/${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 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-mjd-starter-kit
cd /c/myiot/${DIR_REPO_NAME}
git add .
git commit -m "New components and projects"
git config credential.helper store
git push --set-upstream origin master
git tag --annotate v1.6 --message "Added LOLIN D32 to the ESP32 Development boards, Added component and projects for the JSN-SR04T-2.0 Waterproof Ultrasonic Sensor Module, Added documentation about MOSFETs and voltage regulators, Updated documentation for TP4056 solar battery charger board, various changes"
git push origin --tags
git describe --tags --dirt
git rev-parse --short HEAD
git rev-parse HEAD
git status
```