1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What are the 4 storage locations Git uses?
Workspace, index, local repository, remote repository
What command do you use to create a local repository?
git init
What is the local repository?
A copy of the remote repository
What is the index?
Part of the local repository, Stores the list of files and tracks changes
What is the workspace?
The folder where work is done
What command do you use to copy a remote repositories files to your local repository?
git clone
What command do you use to set git config values?
git config
What command do you use to tell the index to add a file to the next commit?
git add
What command do you use to update the local repository and the workspace?
git pull
What command do you use to update only the local repository?
git fetch
What command do you use to move files that also notifies the index?
git mv
What command do you use to copy files that also notifies the index?
git cp
What command do you use to create a file/directory delete request? When is the delete request actually completed?
git rm, the next commit
What command do you use to display the files that have changed that haven’t been added to the local index?
git status
What file do you edit to make git ignore certain files/directories?
.gitignore
What is it called when a file is added to the next commit?
Staging
What command do you use to save the changes you’ve indexed to the local repository?
git commit
What command do you use to send your commits to the remote repository?
git push
What command do you use to merge changes from the remote repository?
git merge
What command do you use to display a list of all commits?
git log