Initial commit

This commit is contained in:
SRC0730 2023-10-24 16:08:16 +08:00
parent a783cff8fa
commit 1b79d65e4d
6 changed files with 27 additions and 5 deletions

View File

@ -6,13 +6,13 @@
### Git ### Git
如 SVN為操作指令必要安裝至[Git 官網](https://git-scm.com/)下載安裝即可。 如 SVN為操作指令必要安裝 [Git 官網](https://git-scm.com/) 下載安裝即可。
![Git](doc_image/2023-10-20-16-28-09.png) ![Git](doc_image/2023-10-20-16-28-09.png)
### SourceTree ### SourceTree
如 TortioseSVN為 Git 操作 IDE 版本控管 Tools至[SourceTree 官網](https://www.sourcetreeapp.com/)下載安裝即可。 如 TortioseSVN為 Git 操作 IDE 版本控管 Tools [SourceTree 官網](https://www.sourcetreeapp.com/) 下載安裝即可。
![SourceTree](doc_image/2023-10-20-14-11-15.png) ![SourceTree](doc_image/2023-10-20-14-11-15.png)
@ -48,7 +48,7 @@
為避免 git 同步時,上傳不必要檔案(ex. packages、node_modules),故會於該檔案設定忽略同步目錄。 為避免 git 同步時,上傳不必要檔案(ex. packages、node_modules),故會於該檔案設定忽略同步目錄。
1. 至[gitignore](https://www.toptal.com/developers/gitignore)找到對應開發 IDE/技術範本文件 1. 至 [gitignore](https://www.toptal.com/developers/gitignore) 找到對應開發 IDE/技術範本文件
![gitignore](doc_image/2023-10-20-16-22-39.png) ![gitignore](doc_image/2023-10-20-16-22-39.png)
@ -177,8 +177,30 @@
![Git-flow](doc_image/2023-10-24-15-30-33.png) ![Git-flow](doc_image/2023-10-24-15-30-33.png)
9. 這時我們可以注意到 `BRANCHES` 有兩個分別為 **develop****master**,但 `REMOTES` 的 origin 並無任何 Branch我們接著按 Push 至 Remote。
![Push](doc_image/2023-10-24-15-53-41.png)
10. 因 Remote 未建立 **develop****master** Branch故我們要將這兩個 Branch 從 Local 發布至 Remote選擇 `Select All` 後點擊 `Push`
![Select All](doc_image/2023-10-24-15-58-16.png)
11. 完成後我們會看到 Git Graph 上同時會出現 Remote 與 Local 的 Branch在左側 REMOTES 也出現剛上傳的 Branch。
![Success](doc_image/2023-10-24-16-01-13.png)
### Gitea 驗證是否上傳成功
- Repository
![Gitea Repository](doc_image/2023-10-24-16-02-41.png)
- 分支資訊
![Remote Branch](doc_image/2023-10-24-16-03-06.png)
### 注意事項 ### 注意事項
- 如果執行 `git push` 有跳出輸入帳號密碼資訊,輸入 Gitea 帳密即可。 如果執行 `git push` 有跳出輸入帳號密碼資訊,輸入 Gitea 帳密即可。
![輸入帳密](doc_image/2023-10-20-16-40-29.png) ![輸入帳密](doc_image/2023-10-20-16-40-29.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB