Skip to content

Commit

Permalink
Update git-quiz.md (#4427)
Browse files Browse the repository at this point in the history
Adding questions I encountered in my LinkedIn Assessment on 2022.09.22
  • Loading branch information
alvarotrujillo authored Sep 23, 2022
1 parent f20e481 commit 9990b69
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions git/git-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. <url>
- [x] Keep local repository branches in sync with upstream branches in the remote repository by committing,pushing and pulling frequently. <url>
- [ ] Avoid frequent interaction with the remote repository to reduce the probability of pulling conflicts. <url>

#### Q129. What command creates a new branch from the currently checked-out branch?

- [ ] `git checkout <nameOfBranch>`
- [x] `git checkout -b <nameOfBranch>`
- [ ] `git -b checkout <nameOfBranch>`
- [ ] `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 <file>..." to include in what will be committed)
brccoli
```
- [x] `git remove broccoli`
- [ ] `git clean -f`
- [ ] `git clean`
- [ ] `git remove .`

0 comments on commit 9990b69

Please sign in to comment.