CS FundamentalsHardProduct-company placement · Git
Two artists keep overwriting each other's edits to the same layered .psd file in Git. Why does the usual merge workflow fail, and what fits better?
- A. Git cannot store binary files at all, so convert the .psd files to text first
- B. The files are too large for Git, so enable shallow clones for both artists
- C. The files lack a .gitignore entry, so ignore them and share copies by email
- D. Binaries can't be merged line by line, so lock the file while one person edits
Correct answer: D. Binaries can't be merged line by line, so lock the file while one person edits
Optimistic concurrency (edit freely, merge later) works for text. For unmergeable binaries a pessimistic lock-modify-unlock model avoids lost work; Git LFS file locking (and Subversion's svn lock) provide it.
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
- Priya rebases Rahul's three commits onto the latest main. What happens to the author and committer fields of the rewritten commits?
- Business rules like 'premium customer AND (order > ₹10,000 OR festive season)' are built as small objects with isSatisfiedBy(candidate)…
- A service reuses expensive database connections from a pool instead of opening one per request. One request leaves a connection inside an…
- Following Beizer's guidance for testing two nested loops, how should you start?
- A team builds a thin, working path through every layer of a new system (UI, API, queue, database) with minimal features, and keeps that…
- Using the convention that each if, else-if, for, while, case, && and || adds 1 to the count of decision points, what is the cyclomatic…