Hey @Laurix. Have you solved your problem? If not, here’s my answer.
Create a repository on GitHub with the same name as the directory/folder you are working in on your machine.
Then, on your machine, open up the command line/terminal and change directories to the one you are working on.
Enter in the terminal git init. This will initialize your directory as a git repository on your machine.
Again at the terminal, type git remote add origin GitHub-repository-url where you use the url of the GitHub repo you created.
Your local git repository is now connected to the GitHub repository. Now, when you work on your machine, you do the normal git workflow:
-
git add .in order to add all files to the git queue -
git commit -m "type a message here"in order to commit the files you added to the queue. - and
git push origin masterin order to push your commit to GitHub.
At this point, your files should be updated on GitHub. You have arrived!