Committing to GitHub repository

Here the process of committing to GitHub projects via the git commands is explained.

When you needed to work on a document from a GitHub repository, you need to create a clone first on your own desktop (or where ever you want to have it). After creating this clone (a description for that can also be found here: Cloning a project’s repo to your desktop) you worked on the document and saved it locally. But how can you sync it with the GitHub repository again?

Instructions

  1. Go to MS VS Code and there open the terminal. Then go to the folder that you got cloned to your desktop using the command cd

  2. Now that you have that folder selected use the command github add .

    Untitled

  3. Then type git commit -m “your message/comment on the commit”

    Untitled

  4. Last step: git push you will see it updating. When ready on GitHub you can see the new commit to the corresponding repo.

Last modified February 17, 2023: update (#208) (ea731fc)