During the migration to Git, a team encounters issues with large binary files slowing down the repository. What Git feature or strategy can address this issue?

  • Git LFS (Large File Storage)
  • Shallow Clone
  • Git Submodules
  • Git Cherry-Pick
Git LFS is designed to handle large binary files efficiently, addressing performance issues during migration and maintaining a streamlined repository.

During a project, two developers work on the same file and create conflicting changes. What is the best way to proceed after Git indicates a merge conflict?

  • Manually resolve the conflict by editing the file in question.
  • Discard all changes made by both developers and start from scratch.
  • Accept one developer's changes over the other without reviewing.
  • Use the git merge --abort command to undo the merge and resolve conflicts.
When a merge conflict occurs, Git pauses the merging process and marks the conflicted areas. The developer should manually resolve the conflict by editing the file to combine the changes. The git merge --abort command can be used to undo the merge attempt, allowing the developer to resolve conflicts and try the merge again.

If you need to review the history of changes within a specific file, use git _______ .

  • log
  • status
  • show
  • diff
The correct option is show. The git show command displays the content and changes of a specified commit or file. It is particularly useful for reviewing the history of changes within a specific file.

In Git, git _______ shows the status of changes as untracked, modified, or staged.

  • log
  • status
  • diff
  • branch
The git status command provides information about the current state of the working directory, indicating which files are untracked, modified, or staged for the next commit.

What advanced Git techniques can be used to manage database schema versions efficiently?

  • Using Git submodules
  • Employing Git hooks
  • Leveraging Git LFS
  • Implementing database migrations
Database schema versions can be efficiently managed using techniques like database migrations, where changes to the schema are version-controlled and applied systematically. Git hooks and Git LFS are useful for other purposes, but they may not directly address schema versioning concerns.

A project requires frequent updates to large media files. What strategy should be adopted in Git to manage these files efficiently without affecting the repository's performance?

  • Git LFS (Large File Storage)
  • Git submodules
  • Git merge strategies
  • Git revert
To efficiently manage large media files without affecting the repository's performance, the project should adopt the Git LFS (Large File Storage) strategy, specifically designed for handling such files in Git.

The git stash ________ command allows you to view all the stashed changes in the repository.

  • Apply
  • Drop
  • List
  • Pop
The correct option is c. List. The git stash list command displays a list of all stashed changes in the repository, showing their stash IDs and descriptions. It helps you identify and manage stashed changes.

How can you view the configuration settings of a Git repository?

  • git config
  • git info
  • git settings
  • git show
To view the configuration settings of a Git repository, you can use the git config command. This command shows both repository-specific and global configuration settings.

A development team is experiencing slow performance when working with a Git repository containing large binary files. What Git feature should they consider implementing?

  • Git LFS (Large File Storage)
  • Shallow clones
  • Git submodules
  • Git Hooks
The team should consider implementing Git LFS (Large File Storage) to efficiently handle large binary files. Git LFS is designed for versioning large files, preventing performance issues.

What are the implications of adopting a Git workflow in a distributed team with respect to continuous integration?

  • CI can become complex due to multiple branches
  • CI is not affected by distributed teams
  • Distributed teams have no impact on CI
  • CI is faster in distributed teams
Git Workflow and CI