Font size
WorksheetsGit & GitHub
Total questions: 10
Worksheet time: 5mins
Git is a __________
Distributed version control system
Centralized version control system
Localized version control system
All of the above
Which of the following commands is used to create a new branch.
git checkout <branch name>
git branch <branch name>
git merge <branch name>
git fetch
Git Pull is a combination of:
branch and checkout
fetch and merge
add and commit
fetch and commit
Git ______ stage all the changes in the project directory.
add
status
log
clone
A special file that is used in Git to tell which files and directories to ignore when making a commit.
.gitignore
ignore-files
.ignore
config
Which command is the opposite of git clone, that uploads your changes and code back to GitHub instead of downloading your code from GitHub?
push
pull
add
status
What is the command to get the current status of the Git repository?
git status
git getStatus
git config --status
--status
What command do you run to view the commit history of your repository?
git log
git history
git past
git commit -h
What command lets you create a connection between a local and remote repository?
git remote add new
git remote new origin
git remote origin
git remote add origin
How would you commit this with as the message "adding a new bug"?
git commit -m "adding a new bug"
git commit "adding a new bug"
git commit .
