GitLab Flow ve Sürüm Yönetimi
GitLab Flow'u keşfedin; CI/CD ile bütünleşmesine ve verimli sürüm yönetimi uygulamalarına odaklanın.
GitLab Flow ve Sürüm Yönetimi, CoddyKit'te ücretsiz bir Git Advanced: Monorepo, Submodules & Workflows dersidir. Bu, 4 dersinin 2. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Git Advanced: Monorepo, Submodules & Workflows öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Git Advanced: Monorepo, Submodules & Workflows kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
What is GitLab Flow?
The GitLab Flow is a streamlined Git workflow that combines feature-driven development with release management and CI/CD integration.
It's designed to be simple, effective, and to work seamlessly with GitLab's built-in features like Merge Requests and pipelines.
Main Branch & Environments
At its heart, GitLab Flow uses a single main branch (often named main or master) as the source of truth.
- Feature branches: All new work happens here.
- Environment branches: Dedicated branches (e.g.,
pre-production,production) track deployed code. - CI/CD: Heavily integrated to automate testing and deployments.
Developing New Features
When starting new work, you'll create a feature branch directly from the main branch. This keeps your main branch stable.
Naming conventions are key, like feature/add-user-profile or bugfix/fix-login-error.
Here's how you might start a new feature:
git checkout main
git pull origin main
git checkout -b feature/new-dashboardCode Review with MRs
Once your feature is complete on its branch, you open a Merge Request (MR) to merge it back into main.
MRs are central to GitLab Flow:
- They trigger CI/CD pipelines for testing.
- They facilitate code review by your teammates.
- They track discussions and approvals.
Deploying to Staging
After a feature branch is merged into main, the main branch itself is often deployed to a staging environment automatically by CI/CD.
This allows for final testing in an environment that closely mirrors production before the code goes live.
The main branch is always deployable.
The Production Branch
For production deployments, GitLab Flow often uses a dedicated production branch. This branch only contains code that has been successfully deployed to the live environment.
When main is ready for production, you merge main into production, which triggers a production deployment.
git checkout production
git pull origin production
git merge main
git push origin productionMarking Releases with Tags
When a deployment to production is successful, it's good practice to create a Git tag on the production branch.
Tags act as permanent markers for specific release versions (e.g., v1.0.0, v1.0.1). They help you easily refer back to a released state.
git checkout production
git tag -a v1.0.0 -m "Release version 1.0.0"
git push origin v1.0.0Handling Hotfixes
If a critical bug is found in production, a hotfix is needed. In GitLab Flow, hotfixes are typically handled by creating a branch directly from the production branch.
Once fixed, it's merged back into production (triggering redeploy) and then also merged into main to ensure main is up-to-date.
CI/CD at its Core
The true power of GitLab Flow comes from its tight integration with CI/CD pipelines.
- Automated Tests: Every push to a feature branch runs tests.
- Deployment Automation: Merges to
mainorproductioncan automatically deploy. - Quality Gates: Pipelines can prevent merges if tests fail or code quality is low.
GitLab Flow Check
Consider the typical structure of GitLab Flow.
Recap: GitLab Flow
You've explored the GitLab Flow, a robust workflow for continuous integration and delivery.
- It uses a stable
mainbranch. - Feature development happens on separate branches.
- Merge Requests drive code review and CI/CD.
- Dedicated environment branches (like
production) ensure smooth releases. - Hotfixes are handled by branching from
production.
This flow is ideal for teams leveraging GitLab's full suite of features.
Sıkça Sorulan Sorular
“GitLab Flow ve Sürüm Yönetimi” dersi ücretsiz mi?
Evet — “GitLab Flow ve Sürüm Yönetimi” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Git Advanced: Monorepo, Submodules & Workflows kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Git Advanced: Monorepo, Submodules & Workflows kursu toplamda 4 dersten oluşur.
“GitLab Flow ve Sürüm Yönetimi” dersinde ne öğreneceğim?
GitLab Flow'u keşfedin; CI/CD ile bütünleşmesine ve verimli sürüm yönetimi uygulamalarına odaklanın. Git Advanced: Monorepo, Submodules & Workflows ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Git Advanced: Monorepo, Submodules & Workflows öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Git Advanced: Monorepo, Submodules & Workflows, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 2. dersidir.
“GitLab Flow ve Sürüm Yönetimi” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Git Advanced: Monorepo, Submodules & Workflows dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Git Advanced: Monorepo, Submodules & Workflows dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Git Flow ve GitHub Flow
- GitLab Flow ve Sürüm Yönetimi
- Özellik Dalları ve Acil Düzeltmeler
- Ana Dal Tabanlı Geliştirme ve Sürekli Entegrasyon