Spring Development Training 2017: week 5

Beschreibung

Test your understanding of Git
Stefcho Stefchov
Quiz von Stefcho Stefchov, aktualisiert more than 1 year ago
Stefcho Stefchov
Erstellt von Stefcho Stefchov vor etwa 7 Jahre
15
0

Zusammenfassung der Ressource

Frage 1

Frage
Git is a distributed version control system created to manage large source code repositories among a large number of developers.
Antworten
  • True
  • False

Frage 2

Frage
With Git, while it is a distributed system, you still must push to the repository from which you pulled.
Antworten
  • True
  • False

Frage 3

Frage
You are the only developer that will be working on a new feature. The master branch, and develop branch will eventually need this feature. Select the best course of action for how to begin working on this feature.
Antworten
  • checkout develop, branch feature, make your edits, commit
  • checkout master, make your edits, commit, push
  • checkout develop, make your edits, commit, push
  • checkout master, branch feature, make your edits, commit

Frage 4

Frage
You can avoid many rebasing problems by remembering to never - rebase after pushing a branch - rebase after commits use your branch - rebase after pulling someone else's branch
Antworten
  • True
  • False

Frage 5

Frage
You wish to exclude certain files from git which you do not want to check into the project. The best option for managing this is:
Antworten
  • edit the .gitignore file to create an exclusion list matching these files.
  • edit the .ignore file to enter a regular expression to match these files.
  • The entire folder is always committed to the project so you should never commit them in the first place.
  • Git is smart enough to ignore the most common environment files that should not be committed.

Frage 6

Frage
If you are still working on a feature in a "feature" branch, but need to work on bug fix on master what should you do?
Antworten
  • commit, push, checkout master
  • commit, merge feature, checkout master
  • commit, push, merge master
  • stash, merge master
  • reset, checkout master

Frage 7

Frage
Given the commit history to the left, suppose you are ready to move the feature back into master, what is the best way to do this?
Antworten
  • Merge
  • Rebase
  • Stash push, checkout master, stash pop, commit
  • You should not be making bug fixes on master

Frage 8

Frage
Given the commit history to the left, suppose you want to move other peoples changes to master onto your feature branch, what is the best way to do this?
Antworten
  • Merge
  • Rebase
  • Stash push, checkout master, stash pop, commit
  • You cannot merge or rebase master in this scenario.

Frage 9

Frage
Given the scenario to the left. You wish to undo the last 2 commits on your hotfix branch and discard their history. What Git command should you use.
Antworten
  • rollback
  • revert
  • reset
  • checkout
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr