Câu hỏi phỏng vấn Git
Câu hỏi

What's the difference between a pull request and a branch ?

Câu trả lời

The main differences between a pull request and a branch in Git are:

A branch is an isolated environment created from the main branch that allows you to experiment with new ideas or make bug fixes without affecting the main branch[3]. Branches provide a safe space to develop and test new features before merging them into the main codebase.

A pull request is a feature that allows you to inform others of the changes you've made to a repository through your branch[3]. It serves as a proposal to merge changes made in one branch into another, typically from a feature branch into the main branch[1][2]. Pull requests facilitate code reviews, encourage collaboration, and maintain a clean, well-documented codebase.

In summary, a branch is where you make cha...

junior

junior

Gợi ý câu hỏi phỏng vấn

senior

What is difference between git stash pop and git stash apply ?

expert

How can you use git bisect to determine the source of a (regression) bug?

senior

When would you use git clone over git clone --bare ?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào