exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 10 discussion

Actual exam question from Cisco's 350-901
Question #: 10
Topic #: 1
[All 350-901 Questions]

DRAG DROP -
Drag and drop the git commands from the left into the correct order on the right to create a feature branch from the master and then incorporate that feature branch into the master.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
FR99
Highly Voted 3 years, 3 months ago
Altough, step 4 and step 5 in practice can be interchanged, the expected answer is: step 1. git checkout -b feature master step 2. git checkout master step 3. git merge --no-ff feature step 4. git branch -d feature step 5. git push origin master
upvoted 22 times
romanknet
2 years, 8 months ago
Why deleting the branch before pushing the master and not after the pushing?
upvoted 4 times
...
...
blezzzo
Highly Voted 3 years, 3 months ago
Concur with FR99 Step 1 --------- > git checkout -b feature master (Create new branch called feature and switch) Step 2 --------- > git checkout master ( switch back to Master branch) Step 3 --------- > git merge –no-ff feature (Merge changes from feature to master branch) Step 4 --------- > git push origin master ( Push changes to remote repo) Step 5 --------- > git branch -d feature (Delete the branch called feature)
upvoted 17 times
...
Fedesarucho
Most Recent 7 months, 1 week ago
It is generally recommended to push the changes to the remote repository before deleting the local branch, so that other team members can access the changes if needed from chatgpt
upvoted 1 times
...
__al__
1 year, 8 months ago
I really hope such broken question doesn't show up in my exam...
upvoted 3 times
adomes
1 year, 4 months ago
Hello, have you already taken the exam? did this question appear?
upvoted 2 times
...
...
ashf4kbd
2 years, 3 months ago
$ git checkout develop Switched to branch 'develop' $ git merge --no-ff myfeature Updating ea1b82a..05e9557 (Summary of changes) $ git branch -d myfeature Deleted branch myfeature (was 05e9557). $ git push origin develop
upvoted 1 times
...
Npirate
2 years, 4 months ago
Both models should work and there for they both should be counted as such. I would rather delete the branch after the merger but it should be a personal preference and will hold no impact over the end-result.
upvoted 1 times
...
JM_Lee
3 years, 4 months ago
In my opinion, deleting a branch is not an important process. So, one of steps 4 and 5 can be done before the other.
upvoted 2 times
...
Writer
3 years, 6 months ago
Swap step 4 and 5
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...