kpi-web-guild / django-girls-blog-OlenaEfymenko

django-girls-blog-OlenaEfymenko created by GitHub Classroom
MIT License
1 stars 0 forks source link

Create an empty commit on `main` (and push nothing else there!) #5

Closed webknjaz closed 1 year ago

webknjaz commented 1 year ago

The following snippet should help you, given that you're starting with a fresh repository that does not have any commits yet.

git commit --allow-empty -m 'Initial commit'
git push origin main

Upon the completion of the task, here are the expectations:

  1. Only 1 (one) single commit in the main branch.
  2. The commit is supposed not to add (or remove for that matter) any files at all.
  3. There should be 0 (zero) files appearing in the repository at this point.

P.S. It's best to do this task having read the first 3 chapters of the ProGit 2 book from #4. P.P.S. Fixing an incorrectly created commit would require amending it, or making an interactive rebase. This may imply going through more materials from #4, googling and/or using StackOverflow.

OlenaYefymenko commented 1 year ago

Hello, Sviatoslav! I completed this issue. Link to repo https://github.com/OlenaYefymenko/learn_git

webknjaz commented 1 year ago

@OlenaYefymenko you need to complete it in this repository, not a separate one.

OlenaYefymenko commented 1 year ago

@webknjaz ок, done in this repository.

webknjaz commented 1 year ago

Brilliant! I've applied the branch protection and pushing to main branch is now forbidden. All the following repository changes are to be made through topic branches and pull requests.