This can be done in at least three different ways:
[!IMPORTANT] For all of the following methods, make sure you create a new branch for your changes, and do not commit directly to the
main
branch. This is important to ensure that your changes can be reviewed and merged properly. See the section below on how to create a new branch.
[!TIP] If you’re not familiar with the command line, you can use an editor like VSCode or PyCharm to open the repository and use their built-in terminal, or their GUI. Make sure you have Git installed, and the Git extension installed in your editor for better integration.
View > Terminal
.git clone <repository-url>
to clone the repositorycd <repository-name>
to change into the repository directorygit pull
to ensure you have the latest changes from the remotegit status
to check the status of your repositorygit branch
to check which branch you are currently on. You should not be on the main
branch when making changes.main
branch directly.[!TIP] Use a descriptive name for the branch, using your initials as a prefix such as
hs_pre-august-session-2023
Several options here depending on how you are editing the repository:
In the terminal, use the command git checkout -b <branch-name>
to create and switch to the new branch.
In the GitHub web interface, you can create a new branch by clicking on the branch selector dropdown and typing in a new branch name. Make sure to select the base branch as main
and then click “Create branch”. This can also be done after you have made changes to a file and clicked “Propose changes” in the web interface.
In GitHub codespaces, you can create a new branch using the terminal as described above, or by using the branch selector dropdown in the top left corner of the editor. Type in a new branch name and press Enter to create it.
[!NOTE] Before making changes ahead of a session, make sure a sign-up form/event has been created and is shareable. See more information on this in our organising guide.
session-template.md
to Sessions/YEAR/MM-YY-session.md
, using the year and month the session will take place.
Sessions/2023/08-23-session.md
Sessions/YEAR
directory if it does not already existREADME.md
file and the SESSIONS.md
fileREADME.md
file, the MM-YY-session.md
file and the SESSIONS.md
file if it’s on there.SESSIONS.md
file to the “Previous Sessions” section.