Version Control Using Git

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

What are the 4 storage locations Git uses?

Workspace, index, local repository, remote repository

2
New cards

What command do you use to create a local repository?

git init

3
New cards

What is the local repository?

A copy of the remote repository

4
New cards

What is the index?

Part of the local repository, Stores the list of files and tracks changes

5
New cards

What is the workspace?

The folder where work is done

6
New cards

What command do you use to copy a remote repositories files to your local repository?

git clone

7
New cards

What command do you use to set git config values?

git config

8
New cards

What command do you use to tell the index to add a file to the next commit?

git add

9
New cards

What command do you use to update the local repository and the workspace?

git pull

10
New cards

What command do you use to update only the local repository?

git fetch

11
New cards

What command do you use to move files that also notifies the index?

git mv

12
New cards

What command do you use to copy files that also notifies the index?

git cp

13
New cards

What command do you use to create a file/directory delete request? When is the delete request actually completed?

git rm, the next commit

14
New cards

What command do you use to display the files that have changed that haven’t been added to the local index?

git status

15
New cards

What file do you edit to make git ignore certain files/directories?

.gitignore

16
New cards

What is it called when a file is added to the next commit?

Staging

17
New cards

What command do you use to save the changes you’ve indexed to the local repository?

git commit

18
New cards

What command do you use to send your commits to the remote repository?

git push

19
New cards

What command do you use to merge changes from the remote repository?

git merge

20
New cards

What command do you use to display a list of all commits?

git log