github first use

posted: May 28, 2021

This section shall contain short explanations about git and/or github in my own words. The official man page is often a little dense in information- at least for me.

How to initialize git repository, add files, commit changes and push to existing github repository:

echo "# exo-cortex.github.io" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:exo-cortex/exo-cortex.github.io.git
git push -u origin main