Skills Check
Table of contents
Test your grasp of git and GitHub by using the following checks. Which of these can you do?
Novice
- Create a
git
repository in GitHub. - Create a
git
repository using the command-line. - Set up SSH key authentication to GitHub
- Clone a GitHub repository to your local computer.
- Perform simple
git add
/commit
/push
/pull
operations. - Display
git
status at any time in your repository.
Advanced Beginner
- List the branches in your local repository.
- Create and switch to a new branch in your local repository.
- Make changes then add/commit/push the new branch back to GitHub.
- Merge a branch into
main
. - Delete a local branch.
- Display the
git log
for your repository.
Competent
- Fork a repository that you do not own.
- Clone the fork you just created.
- Configure an
upstream
remote so that you can synchronize your fork with any changes in the original repo. - Fetch and merge from
upstream
. - Be familiar with how to smooth out a simple (1 file) MERGE conflict.
Proficient
- Use
git stash
properly to save state without committing. - Restore a stash to resume working.
- Tag a commit and push it to GitHub.
- List all tags for a repository.
- Move the repository back one commit.
- Change the name of a repository in GitHub and manually update the address in
.git/config
. - Submit a Pull Request so that your changes can be merged upstream into the original repository.
Expert
- Create a
git alias
by editing~/.gitconfig
- Set up a GitHub Action to automatically build or test your software.
- Customize this Action so that it only runs on a specific branch, or only if it contains a tag.
- Work with repository or GitHub Organization secrets to pass sensitive information into Actions.
- Understand the difference between
rebase
,reset
, andrevert
. - Create a
release
in GitHub. - Set up Actions to respond to Issue types in GitHub.
- Understand
submodule
ingit
.