顯示具有 GitLab 標籤的文章。 顯示所有文章
顯示具有 GitLab 標籤的文章。 顯示所有文章

2025/03/10

透過 Git Subtree 無痛整合 GitHub 上的既有專案

Git Subtree 輕鬆合併專案,保留完整 commit 歷史

在軟體開發的過程中,時常會遇到這樣的需求:

  • 你有一個現有的 Git 專案,但需要將另一個儲存庫的內容整合進來,並且希望保留完整的 commit 歷史。

這時,Git 提供了幾種不同的方式來達成這個目標,其中 Git Subtree 是一個簡單又強大的解法。

本文將帶你了解 Git Subtree 的用途、與 Submodule 的差異,以及如何實際操作,讓你的開發流程更順暢!

2024/10/10

Ubuntu 22.04 LTS GitLab EE 16.x Upgrade 17.x

# 編輯GitLab配置檔
sudo vim /etc/gitlab/gitlab.rb
# 找到下列的將其註解調 
# sidekiq['min_concurrency']
# sidekiq['max_concurrency']
# 改加入
# sidekiq['concurrency'] = 併發數量

# 重新載入配置
sudo gitlab-ctl reconfigure

# 更新GitLab EE版本
sudo apt-get install --only-upgrade gitlab-ee=17.3.1-ee.0 -y

2024/01/27

Ubuntu 透過apt-get升級Gitlab-EE

首先修改gitlab配置,加入下方這串
nginx['custom_gitlab_server_config'] = "location ^~ /api/v4/jobs/request {\n deny all;\n return 503;\n}\n"

輸入下方命令,讓Gitlab載入配置
sudo gitlab-ctl reconfigure

接著輸入指令更新Gitlab
sudo apt-get install --only-upgrade gitlab-ee -y

更新完成後,一開始加入的那串並且重新載入配置即可
參考資料:
Upgrade GitLab

2023/05/29

Ubuntu 22.04 LTS Install GitLab Server EE

GitLab Server有兩個版本,CE(社群版)和EE(企業版)
下方命令是以EE版本為主,如果要改成CE版本則將gitlab-ee改為gitlab-ce即可
版本差異在於EE會多新增比較多的功能,兩者核心是一樣的
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates tzdata perl postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
sudo apt-get install gitlab-ee -y
sudo apt-get remove gitlab-ee -y

# 修改配置檔案
vim /etc/gitlab/gitlab.rb

# 配置及啟動GitLab
sudo gitlab-ctl reconfigure
sudo cat /etc/gitlab/initial_root_password



參考資料:
https://about.gitlab.com/install/#ubuntu