






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A thorough introduction to git and github, covering essential concepts such as version control, local vs. Remote repositories, distributed version control systems, branching, merging, and forking. it includes numerous multiple-choice questions and exercises with answers to test understanding and practical application of the concepts. The guide is suitable for students learning version control for software development.
Typology: Exams
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Version Control - ANSWER the process of storing multiple versions of asingle project, allowing each version to be recalled at a later date Why should I use version control? - ANSWER It's useful!I can rollback to a previous version of my application, which would save me a ton of extra work and time. There are different ways to do version control. Which of the followingmethods do programmers use? a) save a new file every time they make a change, time stamp that file, andplace all files into a timestamped folder b) track all changes in a spreadsheet with notesc) version control software - ANSWER c) version control software T/F Version control will allow for me to try new things without messing upthe code base. - ANSWER true Difference between local vs. remote version control - ANSWER Local versioncontrol - stores info on my computer (locally!); makes it difficult to collaborate with othersRemote version control - a repository as a large folder that stores all the files of a particular project; MULTIPLE people can collaborate on the same projectat once...but you must be connected to the network
Difference between remote version control vs. distributed version controlsystems - ANSWER Remote version control - a repository as a large folder that stores all the files of a particular project; MULTIPLE people cancollaborate on the same project at once...but you must be connected to the network Distributed version control - ALL users have a copy of the entire repository; Ican work on the project independent of any network connection! Once connected, I can push changes to the server and merge with the server'srepository
________ is an example of a distributed version control system. a) express b) git c) ruby - ANSWER b) git _________ is to remote version control as ___________ is to distributed versioncontrol.
a) Github, Git
T/F Git can create a new "parallel universe" based off of a past commit. I canstat working in that other universe and decide later to keep that work or throw it out! - ANSWER true Code: git init - ANSWER create a new git repository out of a directory *only done once per project T/F Only type $ git init within the directory that I want git to track - ANSWERtrue
Code:$ git status - ANSWER check the status of any changes
*used frequently Code: git add
will add changes individually when I'm ready to keep track of changes git add. captures ALL changes in directory; refers to the entire current directory Which of the following is the correct way to initialize a new Git repository? a) git add .b) git init c) git commit - ANSWER b) git init T/F You can type git status at any point while in a git controlled directory tocheck the status of your files. - ANSWER true
Which of the following commands will stage your entire directory and everynon-empty directory inside your current directory?
a) git status all b) git add. c) git commit all - ANSWER b) git add.
T/F Forking creates another copy that allows me to work in my own worldwithout messing with the core content - ANSWER true
Dissect Me! essbee808/forks-and-clones-readme-v-000forked from learn-co-students/forks-and-clones-readme-v-
essbee808 = ____________ - ANSWER username Dissect Me! essbee808/forks-and-clones-readme-v- forked from learn-co-students/forks-and-clones-readme-v-
forks-and-clones-readme-v-000 = _____________ - ANSWER name of therepository
Dissect Me! essbee808/forks-and-clones-readme-v- forked from learn-co-students/forks-and-clones-readme-v- learn-co-students/forks-and-clones-readme-v-000 = ____________ - ANSWERoriginal repository
T/F I can go back and forth between the original repo and my fork bychanging my GitHub username within the GitHub URL to "learn-co-students"
Which of the following commands will allow for me to start a new feature? a) git checkout
to our local git repository, but not actually integrate any. - ANSWER true From github.com:aviflombaum/mission-critical-application bfe50fc..0ae1da2 master -> origin/master* [new branch] remote-feature-branch -> origin/remote-feature-branch
From github.com:aviflombaum/mission-critical-application is informing us_______________.
a) which local repository our git fetch is b) which remote our git fetch updated from - ANSWER b) which remote ourgit fetch updated from
From github.com:aviflombaum/mission-critical-applicationbfe50fc..0ae1da2 master -> origin/master
a) a new commit was found in origin/master; origin/master means the
GitHub version of master b) the files have merged - ANSWER a) a new commit was found inorigin/master; origin/master means the GitHub version of master
git fetch + git merge = __________________ - ANSWER git pull T/F It's a good idea to work directly on your master branch. - ANSWER false Which of the following commands will create a new branch called brand_newand also check it out?
a) git checkout -b brand_new b) git branch brand_newc) git checkout brand_new - ANSWER a) git checkout -b brand_new
T/F In order to merge a new branch into master, you have to add and commitchanges to that branch first. - ANSWER true
Let's say we want to merge brand_new into master. Which branch should webe on when we run the command git merge brand_new?