Learning GIT & GitHub

Last night (technically, early morning – 12AM) I made my first commit to GitHub. Just a README.md file with 2 lines.


I came across this short 2-part introductory series on codeburst.io, called GIT Good. It walked me through the process of creating a local repository, a GitHub repository, creating SSH keys, committing and pushing a file to my GitHub repo.

These were the commands I used:

git config --global user.name "[name]"
git config --global user.email "[email address]"
git config --global color.ui auto
git init [project-name]
git remote add origin [url(https/ssh)]
git status
git add .
git commit -m "[Some message]"
git push origin master

It was pretty straightforward, although I know I’ll have to repeat this process a few times to get the hang of it. Also, I’ll more than likely take a short course to better learn the commands and reasoning behind them. I have a few resources saved.

The reason I want to learn GIT and GitHub is that it will allow me to save any created projects. This is my big weakness right now — creating things. I’ve been learning programming and web-dev stuff for about 8 months now, but no real projects.

Hopefully, this will help.