diff --git a/git/git-quiz.md b/git/git-quiz.md index cc844a3abb..09fc00a706 100755 --- a/git/git-quiz.md +++ b/git/git-quiz.md @@ -1040,3 +1040,21 @@ remote repository, named origin, to point to the new remote repository at this l - [ ] make large commits that introduce multiple features. - [x] Keep local repository branches in sync with upstream branches in the remote repository by committing,pushing and pulling frequently. - [ ] Avoid frequent interaction with the remote repository to reduce the probability of pulling conflicts. + +#### Q129. What command creates a new branch from the currently checked-out branch? + +- [ ] `git checkout ` +- [x] `git checkout -b ` +- [ ] `git -b checkout ` +- [ ] `git branch` + +#### Q130. You have changed your mind about adding broccoli to your project. How should you remove it? +```bash +Untracked files: + (use "git add ..." to include in what will be committed) + brccoli +``` +- [x] `git remove broccoli` +- [ ] `git clean -f` +- [ ] `git clean` +- [ ] `git remove .`