Giter Site home page Giter Site logo

assessments-git-basic's Introduction

Assessments-Git-Basic

Test your basic Git skills and knowledge

##git features True or False:

  • git is centralized, so you must have a connection to your remote repository in order to look at previous commits
  • git uses "branches" to allow for and manage diverging code
  • git supports merging of branches
  • git keeps a history of commits and commit authors

##Cloning a Repository

##git Commands Which command would you use to check the current state of your local repository (see things like staged/not staged changes, how many commits you are ahead or behind, etc.)?

Which command do you use to stage (not commit) changes in your code?

Which command allows you to commit changes and specify a commit message in the same command?

You cloned a repository from a co-worker, but later on he made some changes to that repository. Which command would allow you to get those changes in your local repository?

You've finished your code and want to have the rest of your team update in order to see it. Which command would you use to send the changes to everyone?

(Cont'd) Which command would each team member need in order to see the updated code?

##Git vs Github Which are correct differences between Git and GitHub?

  • GitHub allows you to pull changes from a remote repository, git does not
  • git doesn't include "Pull Request" functionality, GitHub does
  • git doesn't include the "fork" functionality, GitHub does
  • Github allows hosting of git repositories, git itself does not provide hosting

When would you fork a GitHub repository?

  • If you wish to eventually merge your changes back into the original repository
  • If you want to keep your local repository's original location the same as the original repo you forked from
  • If you want to pull in changes from the original repository
  • All of the above
  • None of the above

Which are correct differences between "cloning" and "forking" a repository?

  • A clone allows you to work (pull, push) on code without disrupting the original repo.
  • When you fork the repository, it retains a reference to the original repository for pulling in "upstream" changes.
  • Cloning the repository doesn't place the repository on your machine, it only "clones" it to your own GitHub account.
  • All of the above
  • None of the above

Copyright

© DevMountain LLC, 2016. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content.

assessments-git-basic's People

Contributors

cahlan avatar r-walsh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.