
Typical Git workflow
A standard local-to-remote Git workflow looks like this:- Edit files in your working directory.
- Stage the changes into the staging area.
- Commit staged changes into your local repository.
- Push commits from your local repository to a remote repository.
- Pull updates from others and check out branches locally to merge work.

Branches
- A branch is an independent line of development that diverges from the main codebase.
- Common branch types: feature branches, hotfix branches, staging, development, and a protected main (production) branch.
- Popular branching models: Git Flow, GitHub Flow, GitLab Flow — choose the model that aligns with your team size and release cadence.
Tags
- Tags are named pointers to specific commits and are commonly used to mark releases (for example,
v1.0,v2.0). - Tags make it easy to reference and checkout released versions without changing branch structure.

AWS CodeCommit — historical context
AWS CodeCommit provided a managed Git hosting service integrated with AWS IAM for access control. It supported standard Git operations (push, pull, branch, tag) and pull-request workflows similar to other providers, but it did not include a native fork workflow like GitHub.
- AWS announced CodeCommit entered a retirement phase (announcement dated June 6, 2024):
- No new sign-ups are allowed.
- Existing users can continue to use CodeCommit.
- No new features or enhancements will be released.
- As a result, many organizations now integrate external Git providers with AWS instead of relying on CodeCommit going forward.

If your organization still relies on CodeCommit, identify a migration plan and a support path now. Retirement means no new features or sign-ups — plan for continuity and security (access keys, backups, and CI/CD pipeline updates).
Many teams now use GitHub, GitLab, Bitbucket, or Azure DevOps and integrate them with AWS CI/CD tools. Verify your organization’s support plan and migration path before making changes.
Integrating external Git providers with AWS CI/CD
Popular Git hosting alternatives:- GitHub (SaaS or Enterprise)
- GitLab (SaaS or self-hosted)
- Bitbucket
- Azure DevOps Repos

- Webhooks: Configure push and pull-request webhooks to trigger AWS Lambda, CodeBuild, or a webhook receiver for CodePipeline.
- OAuth / OIDC: Use secure token-based authentication where supported for CI/CD runners and AWS IAM roles.
- Mirroring: For a phased migration, consider mirroring repositories from CodeCommit to an external provider.
- Self-hosted runners: Use self-hosted or runner agents in AWS to execute pipeline jobs close to your infrastructure.
Links and references:
- AWS CodeCommit documentation
- GitHub Docs: GitHub Actions and OIDC
- GitLab Docs: CI/CD and Runners
- Bitbucket Webhooks
- AWS CodeBuild docs
Summary
- Git is the industry standard for source control: distributed, flexible, and feature-rich.
- Branches and tags enable parallel development and release management.
- AWS CodeCommit previously provided managed Git hosting with IAM integration; AWS announced its retirement phase (June 6, 2024).
- For modern AWS CI/CD, adopt mainstream Git providers and connect them to your AWS pipelines using webhooks, OIDC, or mirrored repositories.
- Plan migrations carefully: preserve commit history, update CI/CD triggers, and rotate credentials as needed.