Git

What does git stash do in Git?

What does git stash do in Git? a) Temporarily saves uncommitted changes b) Merges branches c) Deletes a branch d) Resets the repository Answer: a) Temporarily saves uncommitted changes Explanation: The git stash command temporarily saves uncommitted changes in your working directory without committing them. It allows you to clean your working directory without losing

What does git stash do in Git? Read More »

How do you pull changes from a remote repository and merge them into your local branch?

How do you pull changes from a remote repository and merge them into your local branch? a) git fetch b) git pull c) git merge d) git checkout Answer: b) git pull Explanation: The git pull command is used to fetch changes from a remote repository and automatically merge them into your local branch. It

How do you pull changes from a remote repository and merge them into your local branch? Read More »

What is the command to fetch changes from a remote repository without merging them?

What is the command to fetch changes from a remote repository without merging them? a) git pull b) git fetch c) git merge d) git update Answer: b) git fetch Explanation: The git fetch command retrieves updates from a remote repository but does not automatically merge them into your working directory. This allows you to

What is the command to fetch changes from a remote repository without merging them? Read More »

What is Git?

What is Git? a) A distributed version control system b) A centralized version control system c) A text editor d) A compiler Answer: a) A distributed version control system Explanation: Git is a distributed version control system that allows multiple developers to collaborate on a project. Each developer has a full copy of the project

What is Git? Read More »

Scroll to Top