在這邊紀錄把hexo push到private repo 的過程
- 在這邊有做git branch 的練習
- commit 推到本地端
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23git init
git clone XXXX.git
git add .
git commit -m "commit message"
git push
//到目前 psuh到 main
//Head為最上層的節點
創建新分支
git branch newBranch
git checkout newBeanch //切換分支
git add . //新增改變的東西
git commit -m "msg"
git checkout main
git merge newBranch
git push -u origin main //遠端推到repo
git branch -D newBranch //-D強制刪除 這邊是刪除本地端
其他可能用到的指令
1 |
|