- On the GitHub website, make a personal copy of the repository by clicking the Fork button at https://github.com/BitDevsMPLS/bitdevsmpls.github.io
- In your terminal, use
gitto download your personal copy of the repo:
git clone git@github.com:YOURUSERNAME/bitdevsmpls.github.io.git
cdinto thebitdevsmpls.github.iofolder, and usegitto create a place to make your change by checking out a new branch:
git checkout -b BRANCH_NAME
Consider naming your branch something like YYYY-MM-DD-your-good-idea
- Use
gitto observe that you are now on your own branch:
git status
- Use your favorite editor to make a change to your personal copy of website:
vim _posts/2023-11-14-socratic-seminar-09.md
Pay attention to the date and seminar number of the file your are editing.
- Use
gitto observe that you have made changes to your copy of the website:
git status
- Use
gitto stage your change in preparation to commit.
git add _posts/2023-11-14-socratic-seminar-09.md
This is like putting your changes "on deck" to use baseball terminology.
- Use the
statuscommand again to observe that your changes are ready.
git status
- Use
gitto finalize your changes, and commit them to your copy of the repository.
git commit -m "Add something great to the website"
The message you provide must sound like an actual order, as if from a football coach.
- We like "Get down and give me 20" instead of "Got down and gave 20".
- We like "Add a new feature to the webiste" instead of "Added a new feature to the website"
- Use
gitto observe a log of your change. Pressqto exit the log.
git log
- Use
gitto push your changes from your computer to your copy of the repo on GitHub.
This command may give you an error, but it will also provide your with the correct command.
git push
git push --set-upstream origin YOUR_BRANCH_NAME
-
On the GitHub page for your repo, click the "Compare & pull request" button. On the next page, add a description for your change and click "Create pull request" button to send the changes to the admins of the website.
-
Wait for the admins to accept your change.
-
On GitHub, keep your personal copy of the repository updated by clicking the "Sync fork" button.
-
In the terminal, pay attention to your current branch by using
git status. Switch to the "master" branch by using this command:
git checkout master
- In your terminal, keep your local copy of the repository updated by running these two commands:
git fetch
git pull