[Git]
安裝-Git
前往
Git網站,點擊[Download for Windows]。

再按下[Click here to download]。

-
此步驟可以選擇自己習慣的文字編輯工具。

預設分支需要更選項並設定為
main(舊版gitlab為
master)。

-
按下[install]並等待git下載完成。


[GitLab]
相關帳號已建置,帳號:cbb???XXX(學號);信箱cbb???XXX@nptu.edu.tw(Gmail),但無預設密碼無法登入。
登入系計中-GitLab(第一次登入)
請連上資工系計中
GitLab網站,並按下 [忘記密碼?]/[Forgot your password?]。

在電子郵件欄位輸入自己的學校 Google Gmail信箱 (e.g. cbb113100@nptu.edu.tw)後,按下[重設密碼]。

-
按下郵件中的[重設密碼]/[Reset password],將跳轉頁面返回至GitLab網站,輸入你要設定的新密碼,兩個欄位[新密碼]/[New password]與[重設新密碼]/[Confrim new password]都輸入要為帳號設定的密碼,輸入完成後按下[變更您的密碼]/[Change your password]。

這時候使用剛剛修改的新密碼與學號作為帳號密碼,按下[登入]/[Sign in]。

查看-Groups-群組-與-Repository-儲存庫
登入後,左邊選單點選[Groups]查看所有Group與相關資訊在這邊會看得到自己所屬於的Group為Gxx(這邊舉例為G00)。

點進去後可以看到自己組別的所有儲存庫。

下載GitLab的Repository
Command Line Interface(CLI)
建立一個要存放的資料夾。

在按住Shift並點下滑鼠右鍵,按下[在終端中開啟(T)]/(Shift+滑鼠右鍵+T)。

打開資工系計中
GitLab網站並登入,進入到Group-G00-ezPaint 的 Repository,點擊[code],上面會有 Clone with HTTPS 的文字 ,點選旁邊的[ Copy
URL ]可以將網址複製到剪貼簿。

-
輸入完以上指令後即設定完成,Repository內容將下載至資料夾中。

建立-GitLab-上的-Repository
進入G0?這個 Group 後,點下[new Project]/[Create new Project]來建立新的Project。

選擇[Create blank project]。

請在 Project name 的部分打上各組專案名稱,並按下[Create Project]。

完成 Project 建立後即會看到此畫面。

[Eclipse]
安裝-Eclipse
-
按下[Download],跳轉畫面並等待下載。

下載完成後打開安裝程式,選擇[Eclipse IDE for Java Developers]來進行安裝。

選擇[Java Development Kit (JDK) 22.0.2],按下[Install]。

等候安裝完成並按下[LAUNCH]。

Eclipse 視窗,安裝就完成了。

Eclipse
相關學習資源 Connect Eclipse To GitLab
打開Eclipse之後會跳出此視窗要求選擇 Workspace 資料夾,選一個自己喜歡的資料夾來使用。

開啟Eclipse軟體之後,點選左上角[File]→[Import]。

選擇[git]→[Projects from Git]→[Next]。

選擇[Clone
URI]→[Next]。

打開資工系計中
GitLab網站並登入,進入到Group-G99-eazyDraw 的 Repository,點擊[code],上面會有 Clone with HTTPS 的文字 ,點選旁邊的[ Copy
URL ]可以將網址複製到剪貼簿。

URI填入剛剛複製到剪貼簿的內容,填上 GitLab 的帳號以及密碼在 User Password,按下[Next]。

需要勾選 main 這個分支再按下[Next]。

按下[Browse]選擇下載存檔到我們的Workspace,按下[Next]。

看到以下畫面,選擇 Import Existing Eclipse projects,按下[Next]→[Finish]。

完成後會看到左邊已經將 GitLab 的儲存庫下載下來了。

如果沒有出現左邊分頁可以[Window]→[Show View]→[Project Explorer]。
