PLAY READ BLOG

Assess your experience with Github/Git

I estimate it would take you 39 steps in 14 minutes to Assess your experience with Github/Git.
A branch on a GitHub repository belonging to an organization was associated with a pull request. The pull request was closed, and the branch was deleted. How would you restore the branch?
1. Click on the branch selector on the main menu, search deleted, select the branch you want to restore, and click Restore branch

2. Run git checkout -b --restore <branch name> in your local repository, then run git push <remote name> <branch name>

3. Go to Pull requests, select Closed, then select the pull request associated with the branch you want to restore, and select Restore branch on that pull request's page

4. Run git reflog in your local repository to find the branch's SHA hash, then run git checkout -b <branch name> <SHA hash>, and finally git push <remote name> <branch name>
  • 1.
  • 2.
  • 3.
  • 4.
Where can you add topics to your repository?
1. Via using the GitHub topics field that appears when viewing commits

2. From your project's insights on GitHub or via git topic add followed by a list of the desired topics separated by spaces

3. From your project settings

4. On the main page of the repository under your repository's description
  • 1.
  • 2.
  • 3.
  • 4.
You created a web application that will accept POST requests from GitHub when an issue is made in your repository. How can you encourage the application to ensure that all notifications about new issues originate from GitHub?
1. Set your event or webhook to secret mode to enable encyption via the X-Hub-Signature header
2. Enter a secret token in the webhook's Secret field, store the token in an environment variable on the web server, and program the web application to ensure the hashes of the X-Hub-Signature headers on the requests match your token's hash
3. Set your webhook to secret, store your webhook's secure origin in an environment variable on your web server, and program the web application to ensure the hashes of the Origin headers on the requests match your secure origin's hash
4. Set your event to secret, hardcode your event's secure origin in your web application, and program the web application to ensure the hashes of the Origin headers on the requests match your secure origin's hash
  • 1.
  • 2.
  • 3.
  • 4.
Fill in the blank: GitHub Milestones track progress on groups of ____________ within a repository.
  • pull requests
  • issues
  • issues or pull requests
  • users
A user has two factor authentication enabled on their GitHub account. How can the user log in if they lost their phone?
1. By opting to answer a series of security questions when logging in

2. By opting to have a password reset email sent to them when logging in

3. By opting to enter their SSH key when logging in

4. By opting to enter a two-factor recovery code when logging in
  • 1.
  • 2.
  • 3.
  • 4.
How would you utilize the advanced search page to search for repositories that have more than 100 stars?
1. Type ">100" in the "With this many stars" field, under the "Repository Options" section

2. Add the following query string parameters to the advanced search page url: "?stars=between[101..*]".

3. Add the following query string parameters to the advanced search page url: "?stars=>100".

4. Type "100.." in the "With this many stars" field, under the "Repository Options" section.
  • 1.
  • 2.
  • 3.
  • 4.
How would you completely remove a custom footer from a GitHub Wiki?
1. Remove all the content from the existing footer

2. Delete the "_Footer" Wiki page

3. Uncheck the "Display Wiki Footer" checkbox in your repository settings

4. Email [your repository name]@support.github.com and ask to remove the footer
  • 1.
  • 2.
  • 3.
  • 4.
You own a GitHub organization. You want half of your organization members to only be able to read and write to repository A and the other half to of your organization members to only be able to view repositories B, C, and D. You also want to restrict organization members who can see repositories B, C, and D to only be able to write to the repository they are assigned to work on (either B, C, or D). How could you best structure your organization in order to make this possible?
1. Create three teams

2. Create three teams, then create two nested teams inside one of the top-level teams

3. Create two secret teams, then create nested teams inside one of the top-level teams

4. Create two teams, then create three nested teams inside one of the top-level teams
  • 1.
  • 2.
  • 3.
  • 4.
💡FUN FACT💡GitHub's mascot is an anthropomorphized "octocat" with five octopus-like arms. The character was created by graphic designer Simon Oxley as clip art to sell on iStock, a website that enables designers to market royalty-free digital images.
What are the properties of deleted repositories?
1. Deleted repositories are read-only for a 30-day period, after which they cannot be recovered.

2. Deleted repositories can be recovered if the recoverable option is selected upon deletion.

3. Deleted repositories can always be recovered.

4. Deleted repositories are generally gone forever and may only be recovered in certain situations with special support from GitHub.
  • 1.
  • 2.
  • 3.
  • 4.
The content in a Wiki's footer originates from:
1. GitHub.

2. The page titled "_Footer."

3. Comments left by other users.

4. GitHub's use of meta data from your repository.
  • 1.
  • 2.
  • 3.
  • 4.
You are commiting a bug fix. What occurs when you commit with the following message: "Fixes Landing Page bugs - Closes #42."
1. It commits the code fix.

2. It commits the code fix and notifies the assigned user to the issue.

3. It commits the code fix and opens a pull request to review for issue # 42.

4. It commits the code fix and closes the referenced issue # 42.
  • 1.
  • 2.
  • 3.
  • 4.
You begin writing a code of conduct for your GitHub repository in a CODE_OF_CONDUCT file in your local Git repository. After writing some code, you discover that GitHub offers you the Contributor Covenant and Citizen Code of Conduct templates for creating a code of conduct. You think the templates are a good fit for your project, but you also feel that the already existing code contains important information that is unique to your project. Which of the following is a reasonable solution?
1. Use either Contributor Covenant or Citizen Code of Conduct, and create your own addendum in a file called CODE_OF_CONDUCT_AD as any adaptation of Contributor Covenant or Citizen Code of Conduct would be a violation of their licenses
2. Write your own code of conduct because using a template for a code of conduct is not considered a best practice and it may be a signal to contributors that you are not serious about ensuring they feel welcome and safe
3. Use the desired template and consider adapting it to your preferences and your project's specific needs in a way that complies with the template's license
4. Use one of the provided templates without any adaptations as it is the only way to comply with the licenses of Contributor Covenant and Citizen Code of Conduct
  • 1.
  • 2.
  • 3.
  • 4.
Which of the following is not a potential benefit of using Jekyll for GitHub Pages?
1. Common templates can be used across files

2. Sites can be created in Markdown rather than HTML

3. Choosing themes can be faster than writing custom CSS

4. Jekyll allows content to be dynamically generated in the browser using Ruby
  • 1.
  • 2.
  • 3.
  • 4.
How would you determine what changes have been made to a Wiki page in the last month?
1. Use the pages revision history to compare the most recent revision with a revision from one month ago

2. Add a since=-1m query string parameter to the URL of the page

3. Press the "Undo Previous Change" button present until you get back to last month's version

4. Use the date filter in the page history, which allows you to see changes made between two points in time
  • 1.
  • 2.
  • 3.
  • 4.
When using a pull request template, contributors of a repository will automatically see the template when they create a pull request. Where will they see the template?
1. In a new, tracked file that is located in the branch's source code

2. In the pull request body

3. In a new tab

4. In the pull request dialog message
  • 1.
  • 2.
  • 3.
  • 4.
What is the typical use case for referencing an issue in a pull request?
1. Your pull request is dependent on other issues and you would like to connect the two.

2. You want to alert a user about an issue.

3. Your pull request reviewer needs to also review another issue, but the issue is not yet assigned.

4. You need a way to find an issue again in the future.
  • 1.
  • 2.
  • 3.
  • 4.
What is the most accurate comparison of the following searches:

View in:path
filename:View
1. The first will return results that match files containing 'View' in any part of their path. The second will match only files that are called 'View' with any extension.
2. There is no difference between these two searches. They both return results that match the word 'View' anywhere in the file path.
3. The first returns results where 'View' is in the directory path but not the file name. The latter returns results where 'View' is in the file name but not the directory path.
4. There is no difference between these two searches. They both return results that match files called 'View' with any extension.
  • 1.
  • 2.
  • 3.
  • 4.
Which of the following search qualifiers will restrict search results to only pull requests?
  • where(type=pr)
  • type:pr
  • types:[pr]
  • type:in(pr)
85% of all 204 users completed this intention.
Get Started   

Or consider 73 other intentions.