WorksheetsGit hub Pull Request
Total questions: 10
Worksheet time: 10mins
You have found a repository that you want to contribute to but in order to do so you need to copy the repo into your own github account. What is this process called as?
fetch
commit
add
fork
You have copy of a repository added to your Github account of which you want a copy on your local system to work on it. This act of copying a repo is known as?
commiting
staging
cloning
none of the above
Which of these represent the changes that you make on the repository?
Branch
Tree
SHA tables
None of the above
Which of the following commands lets you change to a new branch?
git switch
git checkout
Both of these
None of these
Which git command is used to stage all the changes made to a file?
git commit .
git stage .
git add .
none of the above
You have made some changes on your local repository on your system and want these changes to be reflected in the remote repository in your github account . What command allows you to do that?
git rebase
git pull
git push
none of the above
You have made changes in a project in your clone repository and want these changes to be pushed to the main repository. What would you do?
Submit a push request
Contact the developer
Submit a pull request
Contact the administrator
Which of these is a bad github etiquette?
Generating a pull request without discussing it in the issues section
Generating a pull request without following the contribution guidelines
Both of these
None of these
Which of the following scenarios can generate a merge conflict?
When two separate branches have changes to the same line in a file
A file is deleted in one branch but has been modified in the other.
Both of these
None of these
Which of the following commands can be used instead of a git pull command?
git fetch
git merge
git add
git merge
git fetch
git rebase
git add
git rebase
