What is a trunk based branching strategy
Most work happens directly on the main branch with short-lived branches for small changes
What is a feature branch strategy
Each new feature or bug fix gets its own branch which is merged back to main when complete
What is a release branch strategy
Branches are created at release time to stabilize code while new features continue in development branch
Why use trunk based development
Optimizes for continuous integration reduces merge conflicts and speeds up delivery
When are feature branches preferred
When teams want to isolate and develop features or fixes independently from main branch
What is the main benefit of release branches
Allows stabilization and bug fixes for releases without blocking new development
What is a pull request in Git
Request to merge changes from one branch into another typically reviewed by others
How do branch policies improve pull request workflow
Enforce code reviews successful builds or status checks before merging
How do branch protections enhance code quality
Prevent direct pushes and require checks or approvals before accepting code
What restriction can you place on a branch to prevent unwanted changes
Require pull requests and protect branch from force pushes
What does branch merging restriction mean
Limiting who can merge specific branches and under what conditions
How do you configure branch protection in GitHub
Use branch protection rules in repository settings to set requirements
How can Azure Repos enforce branch policies
Set up policies for required reviewers build validation and work item linking
What tool can you use to manage large binary files in Git
Git Large File Storage LFS
When should you use git-fat or Git LFS
When storing files too large for normal Git such as media or build artifacts
How does Git LFS store large files
Replaces large files with pointers and stores actual content in an external server
What is Scalar used for in Git
Helps scale and optimize large monorepos for performance
How does cross repository sharing work in Git
Submodules or subtrees allow sharing code across multiple repos
What can help reduce repository size over time
Prune old branches use Git GC and remove unnecessary large files
How do you restrict user access to parts of a repo in GitHub
Set branch or directory permissions and use teams or roles
What is a permission setting in Git
Defines what users or groups can read write or admin repositories or branches
Why use tags in a Git repository
Mark important commits such as releases or milestones for easy reference
How do you create a tag in Git
Run git tag tagname at the desired commit
How do you list tags in a repository
Run git tag command in the repo directory