GIT Interview Questions and Answers
Ques 21. What is the purpose of 'git remote'?
'git remote' is used to manage remote repositories. It allows you to add, remove, or view the configured remote repositories.
Is it helpful?
Add Comment
View Comments
Ques 22. Explain the concept of Git rebase interactive.
Git rebase interactive allows you to selectively edit, reorder, or squash commits during the rebase process.
Is it helpful?
Add Comment
View Comments
Ques 23. How do you create a tag in Git?
You can use 'git tag' followed by the tag name to create a tag at the current commit.
Is it helpful?
Add Comment
View Comments
Ques 24. What is the purpose of the '.gitattributes' file?
The '.gitattributes' file is used to define attributes and merge strategies for specific files in a Git repository.
Is it helpful?
Add Comment
View Comments
Ques 25. Explain the difference between 'git push' and 'git pull' commands.
'git push' is used to upload local changes to a remote repository, while 'git pull' is used to fetch and merge changes from a remote repository.
Is it helpful?
Add Comment
View Comments
Most helpful rated by users: