← All quizzes

💻 Computer Science & IT

Git in practice

Merge versus rebase, resetting safely, and getting out of the states that make people delete the folder and re-clone.

8questions

mediumdifficulty

+16max XP (1st try)

not rated yet

Question 1 of 8

`git merge` and `git rebase` differ in that rebase:

Question 2 of 8

`git reset --hard HEAD~1` does what?

Question 3 of 8

To undo a commit that is already pushed and shared, you should:

Question 4 of 8

What does `git fetch` do that `git pull` does not?

Question 5 of 8

A `.gitignore` entry stops a file being tracked:

Question 6 of 8

`git stash` is for:

Question 7 of 8

In a merge conflict, the markers `<<<<<<<`, `=======`, `>>>>>>>` separate:

Question 8 of 8

A force-push that is safe on a shared branch is:

0/8 answered

Part of