GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Git self assesment Quiz

Kostas Diakogiannis 16 Fragen

Quiz starten

Fragen in diesem Quiz (16)

  1. 1How can someone convert a normal folder with name my_project into a local git repository?
    1. AGit merge my_project
    2. BGit remote add origin my_project
    3. CGit init
    4. DGit push origin my_project
  2. 2When someone clones a remote repository to his computer, this automatically gives him the access to change the code to the files in his computer and to push his code back to remote again.
    1. ARichtig
    2. BFalsch
  3. 3What is the ultimate prerequisite for someone in order to perform a commit?
    1. AHaving the file changes stashed.
    2. BHaving just changed some files.
    3. CHaving the changed file also staged.
  4. 4Select the correct order of the actions , that have to be made if someone wants to send his code to remote from the beginning.
    1. A1. Make some file changes
      2. Commit them
      3. Stage them
      4. Push
    2. B1. Make file changes
      2. Stage them
      3. Commit them
      4. Pull
    3. C1. Make file changes
      2. Stage them
      3. Commit them
      4. Push
  5. 5You created a branch from master and you have been working on it tirelessly. You have already made some changes but you havn't staged them.

    Suddenly a colleague of yours says to you that he has updated the master branch on remote and you must downloaded the latest changes.

    How are you going to save your file changes on your current branch without performing a commit, in order to fetch the new code from master?
    1. AGit add --all
    2. BGit commit -m 'some changes'
    3. CGit push origin branch
    4. DGit stash
  6. 6You have made a commit with some awesome changes and you pushed to remote. Unfortunately you have forgotten to add one small change to your previous commit. What should you do?
    1. AAfter the changes, make a new commit, then push.
    2. BFill the previous commit and add new changes there by typing *Git commit --amend*
  7. 7A colleague of your has updated the master branch while you were working on your branch locally. You have already brought these changes to your local master and you want to have them to your local branch as well regardless of commit order.

    What seems correct? Your branch's name is jake.
    1. A1. Git checkout master
      2. Git merge jake
    2. B1. Git checkout jake
      2. Git merge master
    3. C1. Git checkout master
      2. Git rebase jake
    4. D1. Git checkout jake
      2. Git rebase master
  8. 8When someone creates a local branch, that means that a corresponding branch is being automatically created on remote.
    1. ARichtig
    2. BFalsch
  9. 9You have been working on your local branch and now you are ready to introduce these commits to your local master. What is the appropriate command given that you are standing on master now and given the name of your branch is jake.
    1. AGit push jake
    2. BGit push origin master
    3. CGit merge origin master
    4. DGit merge jake
  10. 10What is the appropriate action to get out of the merge process right after you have solved merge conflicts in text editor?
    1. A1. Git add --all
      2. Git commit -m 'some message about the merge'
    2. B1. Git commit -m 'some message about the merge'
    3. C1. Git stash
      2. Git commit -m 'some message about the merge'
    4. DGit push --force

Informationen

Beschreibung
A 16 Questions basic self-assessment test regarding git and github workflow. Thus the participants can estimate how good they have proceeded with git, how further they need to go. Also for the teacher is a good tool for solving the commonest misconceptions on the spot.
Sprache
English
Aufrufe
219
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck