Skip to main content

3 docs tagged with "git"

View All Tags

reset git remote origin branch

在local端發現build完東西fail,但是已經推到main branch了,所以執行遠端registry退版,需要使用 git push --force,基本上 main branch 都會是保護的,也可以考慮用 pull request 先進行測試(不能自己發 pull request 自己審),過了再 merge。

use react to build your own static website by github page

記錄一下github page配合git hub action的部署react vite過程,並提供github multiple repo管理辦法,主要步驟1.建立一個repo名為your_github_username.github.io 2.建立gh-pages分枝3.地端建立CI yml檔 4.設定github page使用branch gh-pages 5.推地端資料到main branch 6.CI會幫你執行build並把資源放到gh-pages branch ,Done

use react to build your own static website by github page

記錄一下github page配合git hub action的部署react vite過程,並提供github multiple repo管理辦法,主要步驟1.建立一個repo名為your_github_username.github.io 2.建立gh-pages分枝3.地端建立CI yml檔 4.設定github page使用branch gh-pages 5.推地端資料到main branch 6.CI會幫你執行build並把資源放到gh-pages branch ,Done