https://github.com/piraces/exercise-remove-commit-history
GitHub training: exercise-remove-commit-history.
https://github.com/piraces/exercise-remove-commit-history
Last synced: 11 months ago
JSON representation
GitHub training: exercise-remove-commit-history.
- Host: GitHub
- URL: https://github.com/piraces/exercise-remove-commit-history
- Owner: piraces
- License: cc-by-4.0
- Created: 2022-01-23T13:53:40.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-23T14:27:35.000Z (almost 4 years ago)
- Last Synced: 2025-01-08T09:45:29.637Z (about 1 year ago)
- Language: CSS
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to the Remove Commit History exercise!
This exercise checks your knowledge on removing a commit from the git history of a repository. It is automatically graded via a workflow once you have completed the instructions.
## About this exercise
:warning: A grading script exists under `.github/workflows/grading.yml`. You do not need to use this workflow for any purpose and **altering its contents will affect the repository's ability to assess your exercise and give feedback.**
:warning: This exercise utilizes [GitHub Actions](https://docs.github.com/en/actions), which is free for public repositories and self-hosted runners, but may incur charges on private repositories. See _[About billing for GitHub Actions]_ to learn more.
:information_source: The use of GitHub Actions also means that it may take the grading workflow a few seconds and sometimes minutes to run.
## Instructions
Please complete the instructions below:
1. Create your own copy of this repository by using the [Use this template](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template#creating-a-repository-from-a-template) button.
2. Remove all references to the `.env` file which contains sensitive data from the repository.
You do not need to contact GitHub Support to remove cached commits and complete this exercise.
## Seeing your result
Your exercise is graded automatically once you have completed the instructions. To see the result of your exercise, go to the **Actions** tab, and see the most recent run on the **Grading** workflow.
Below is an example of an incorrect solution and the feedback provided in the **Grading results:**

See _[Viewing workflow run history]_ if you need assistance.
## Troubleshooting
If you are stuck with a step in the exercise or the grading workflow does not automatically run after you complete the instructions, run the troubleshooter: in the **Actions** tab select the **Grading workflow**, click **Run workflow**, select the appropriate branch, and click the **Run workflow** button.

The troubleshooter will either display useful information to help you understand what you might have done wrong in your exercise or redirect you to the documentation relevant to your exercise to help you out.
See _[Running a workflow on GitHub]_ if you need assistance.
## Useful resources
Use these to help you!
Resources specific to this exercise:
- [Removing sensitive data from a repository] - GitHub Docs
- [BFG repo cleaner] - Tool homepage
- [git filter-repo] - Tool repository
Resources for working with exercises and GitHub Actions in general:
- [Creating a repository from a template]
- [Viewing workflow run history]
- [Running a workflow on GitHub]
- [About billing for GitHub Actions]
- [GitHub Actions]
[Removing sensitive data from a repository]: https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository
[BFG repo cleaner]: https://rtyley.github.io/bfg-repo-cleaner/
[git filter-repo]: https://github.com/newren/git-filter-repo/
[creating a repository from a template]: https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template
[viewing workflow run history]: https://docs.github.com/en/actions/managing-workflow-runs/viewing-workflow-run-history
[running a workflow on github]: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow#running-a-workflow-on-github
[about billing for github actions]: https://docs.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions
[github actions]: https://docs.github.com/en/actions