Lesson 3

¡Supera tus tareas y exámenes ahora con Quizwiz!

What is the Git command to upload all local branch commits to the remote repository?

$ git push

What is the Git command that records file snapshots permanently in version history (cache/staging area)?

$ git commit -m"[descriptive message]"

How do you create a new local repository?

$ git init

What is the git command that will allow view all of the new or modified files to be committed?

$ git status

Benefits of VCS

-Files cannot be overwritten -There is a common repository that holds all the latest files -People can work on the same files simultaneously without conflict -Allows you to revert back to an older version of the file/project if needed

Three Basic Steps of Git

1. Add 2. Commit 3. Push

Git

A free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency

Version Control System (VCS)

Automatically notes: -who changed the files -when they were changed -what about them was new or different -merge changes to the same file

git status

Check the status of your repository. See which files are inside it, which changes still need to be committed, and which branch of the repository you're currently working on.

A local repository can be created using two approaches: create a brand new repository (git init) or pull a new repository (git pull).

False

Git is a free and open source decentralized version control system.

False

VCSs are not beneficial and are a waste of time to web designers/developers who do not work with a development team. VCSs are only beneficial to development teams working on a project.

False

Version control systems allow files to be overwritten in the common (remote) repository

False

git help

Forgot a command? Type this into the command line to bring up the 21 most common git commands. You can also be more specific and type "git help init" or another term to figure out how to use and configure a specific git command.

git commit

Git's most important command. After you make any sort of change, you input this in order to take a "snapshot" of the repository. Usually it goes -the -m indicates that the following section of the command should be read as a message.

git init

Initializes a new Git repository. Until you run this command inside a repository or directory, it's just a regular folder. Only after you input this does it accept further Git commands.

Version Control

One main repository for all of the project files; team members check files out, make changes, then check them back in (or commit them)

Local Repository

Repository that resides on a local machine of an individual users Ways to create: -Create a brand new repository -Clone an existing remote repository onto your local machine

Remote Repository

Repository that resides on a remote server that is shared among multiple team members

git add

This does not add new files to your repository. Instead, it brings new files to Git's attention. After you add files, they're included in Git's "snapshots" of the repository.

Git allows every user to have a complete copy of the shared remote repository data stored locally on their own machines.

True

Version control systems keep track of who changed the file/project, when the change was made, what changes were made, and allows the developer to revert back to a previous version of the file/project.

True

git merge

When you're done working on a branch, you can merge your changes back to the master branch, which is visible to all collaborators.

git branch

Working with multiple collaborators and want to make changes on your own? This command will let you build a new branch, or timeline of commits, of changes and file additions that are completely your own. Your title goes after the command. If you wanted a new branch called "cats," you'd type


Conjuntos de estudio relacionados

WGU - D089 - Principles of Economics

View Set

Chapter 3 - The Costs of Production and Profit Maximization

View Set

DOC1 Chapter 8 Managing Lesson Delivery

View Set

1.4 Hematology: Macrocytic and Normochromic Anemias

View Set

SFDC STUDY 175 Questions - Set 2

View Set

Ch 4 human digestion, transport and absorption

View Set

Module 1 Chapter 2.3 and 3.2-3.9

View Set