GIT

INTERVIEW QUESTIONS

● What is the command to set up your git username and git email

● What is the command to initialize a git repository

● What is the command to add a file or multiple files to the staging area in git

● What is the command to commit changes with a message in git

● What is the command to see your commit history in git

● What is the command to create new branch in git

● What is the command to switch to a another branch in git

● What is the command to list branches in git

● What is the command to create a branch in git and switch to it immediately

● what is the command to delete a branch in git

● what is the command to merge two branches in git

● what is the command to abort a conflicting merge git

● what is the command to pull or push changes in git

● what is the command to check remote branches that git is tracking

●what is the command to fetch remote repository changes in git

● what is the command to force a push request in git

● what is the command to add a remote reporting git

● what is the command to rename files in git

● what is the command to ignore files in git

● what is the command to remove tracked files from the current working tree in git

● What is the command to rollback the last commit in git

● What is the difference between git and GitHub

● What is difference between repository and branch in git

● What is difference between get pull and git push

● What is the difference between git pull and git fetch

● What is difference between git clone and git remote

● What is the difference between git diff and git status

● What is the difference between git merge and get rebase

● What is a git repository and how to create it

● How to fix a broken commit

● What happens if the git directory gets deleted

● What is the use of staging area or indexing in git

● What are the different get repository hosting function

● What is version control system

● What are the advantages or features of git

● What is difference between GIT and SVN

● What does the command git config do

● What is the functionality of git ls-tree

● What does git stash, git stash apply, git Stash pop and git Stash drop commands do

● What does git annotate command do

● What does GIT cherry-pick command do

● What is the difference between get revert and reset

● What do you mean by commit message

● How to revert a bad commit which is already pushed

● What is the difference between the head , working tree and index in git

● What has to be run to squash multiple commits into a single commit

● What does git reflag do

● Can you recover a deleted branch in git

● What is a conflict in get and how to resolve it