NEW
Font size
WorksheetsGit & GitHub
Total questions: 10
Worksheet time: 10mins
This git command creates an empty Git repo in the specified directory.
init
add
status
log
Git command used to display the entire commit history.
init
add
status
log
Git ______ stage all the changes in the project directory.
add
status
log
clone
This flag is added when we want to add a message when committing the staged snapshot.
-m
--m
--message
commit
Which of the following commands is used to add a remote connection to a remote repo.
git remote add
git add remote
git remote -add
git pull
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 command used to upload local repo to the remote repository.
push
upload
remote
pull
This list the files that are unstaged, staged, and untracked.
status
list
log
diff
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 of the following commands is used to define the author name to use for all commits in the current repo.
config user.name
config name
config user
config username
