BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Topic 2.2 — Managing repositories — cram sheet
Cram Sheet333 words

Topic 2.2 — Managing repositories — cram sheet

Topic 2.2 — Managing repositories · cram sheet

Large files

ContentStore in
SourceGit
DependenciesAzure Artifacts
Large binaries that change oftenGit LFS
  • Binaries don't delta well → near-full copy per version, paid by every clone forever.
  • LFS stores a pointer; content lives outside, fetched on checkout.
  • Enabling LFS does not shrink existing history — that needs a rewrite.

Scaling

  • Scalar: partial clone (contents on demand) + sparse checkout (only your directories) + background maintenance.
  • Cross-repo sharing: prefer a package feed over submodules. A submodule is a commit pointer with no version semantics.
  • Split or not? Does the code change together? Ships together → lives together.

Permissions

  • Levels: organisation → project → repository → branch.
  • Deny beats Allow; Not set = inherit.
  • Permissions = who may act. Policies = what must be true. Both needed — policy alone leaves force push available.
  • Assign Force push and Manage permissions deliberately.

Tags

  • Annotated for releases — tagger, date, message, and signable.
  • A release tag is the rollback and hotfix branch point.
  • Tags can move. Never move one — every prior reference silently changes meaning.

Recovery

SituationCommand
Lost commit after reset/rebasegit reflog → checkout/reset
Deleted branchgit reflog → git branch
One commit from elsewheregit cherry-pick
Undo a pushed commitgit revert
Restore a deleted filegit restore --source=<commit>

Reflog is local and expires — it cannot recover a colleague's commits.

Removing data

  • git rm + commit removes from the current tree only.
  • A committed secret: rotate first. Removal is secondary — the value is already distributed.
  • git filter-repo / BFG rewrite history → every hash changes, everyone re-clones.
  • Prevention: push protection, .gitignore, pre-commit hooks.
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.