Git Subtree 輕鬆合併專案,保留完整 commit 歷史
在軟體開發的過程中,時常會遇到這樣的需求:
- 你有一個現有的 Git 專案,但需要將另一個儲存庫的內容整合進來,並且希望保留完整的 commit 歷史。
這時,Git 提供了幾種不同的方式來達成這個目標,其中 Git Subtree 是一個簡單又強大的解法。
本文將帶你了解 Git Subtree 的用途、與 Submodule 的差異,以及如何實際操作,讓你的開發流程更順暢!
在軟體開發的過程中,時常會遇到這樣的需求:
這時,Git 提供了幾種不同的方式來達成這個目標,其中 Git Subtree 是一個簡單又強大的解法。
本文將帶你了解 Git Subtree 的用途、與 Submodule 的差異,以及如何實際操作,讓你的開發流程更順暢!
# 編輯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
nginx['custom_gitlab_server_config'] = "location ^~ /api/v4/jobs/request {\n deny all;\n return 503;\n}\n"
sudo gitlab-ctl reconfigure
sudo apt-get install --only-upgrade gitlab-ee -y
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