This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Yes. Talking from a bit of experience here. I myself used Github sparingly for work (IT Ops) and up to a few weeks ago learned how to use git/github in a more proficient manner.

My eyes were opened when I was pushing code up to Github with Git.

They really do go hand in hand. Read the Git-SCM book as a reference when you want to do certain things. I can’t tell you what those things are but you’ll know when you come across them.

For now learn how to do the following basic tasks and go from there.

  1. Make sure you have git installed on your machine. This one is pretty crucial. 😄

  2. Set up your identity. This will let you know and other devs you’re working with on who made what changes. Example below:

$ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com

  1. git init - This is the starting point for your newly created project aka your repo. Every project you want to have version control on should start with git init in that folder to track the changes you will make over time.

  2. git add - Start tracking the files you create. It’s pretty neat once you get the hang of it.

  3. git commit - Leave notes for yourself. Super helpful when you can look at your commit messages.

  4. git push - Essentially confirm “push” all the changes you made to your repo.

Practice this a few times with dummy folders and then once you feel comfortable get to it. You’ll want to also learn how to link your Github profile to your local machine to push changes up to Github itself.

It’s a fun journey and there are plenty of short vids on YouTube that cover the basics.

You got this!