CS FundamentalsHardProduct-company placement · Git
A CI job clones a huge repository with git clone --filter=blob:none. Which statement is correct?
- A. Only the latest commit is fetched, so git log shows a single commit
- B. Large files are skipped and replaced by LFS pointers automatically
- C. Nothing is fetched until a sparse-checkout pattern has been configured
- D. Full history arrives, but file contents download lazily, e.g. at checkout
Correct answer: D. Full history arrives, but file contents download lazily, e.g. at checkout
A blobless partial clone has full history (commits and trees) but fetches blobs lazily from the remote. That differs from a shallow clone (--depth), which cuts history, and from LFS, which needs explicit tracking.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A company debates a monorepo (all services in one repository) against one repository per service. Which statement is the strongest…
- Match each test smell with its description. P. Assertion roulette Q. Mystery guest R. Eager test S. Sleepy test 1. Depends on an external…
- A state machine has 4 states and 3 possible events, with 5 valid transitions defined. A tester also wants negative tests for every (state…
- For integer x, what is the weakest precondition wp(if x > 0 then y := x else y := −x, y ≥ 2)?
- An IDE has a small core that loads, at start-up, independently developed extensions which register through defined extension points. Which…
- An order flow touches payment, inventory and shipping services. In design 1 each service reacts to events from the others; in design 2 one…