Git that Sh*t. The most pragmatic guide to Git and GitHub.

git, created by Linus Torvalds in 2005.
GitHub, founded in 2008.

First things first, Git and GitHub are not same.

What exactly is Git and GitHub?

Git Basics:

Creating a gitprac directory and then a README.md file inside it.
initializing git in our repo using git init command.
adding our README.md file to git’s staging area.
committing all the files present in the staging area.

Let's talk about git branches :

Creating a new branch from the main branch master.
This is gitprac directory in powerofgit branch.
switching to branch master.
This is gitprac directory in master branch.
merging powerofgit branch to master branch
master branch after merging powerofgit branch in it.
Login to your GitHub account and tap on new.
Type a name for your repo, you’ll get a prompt like this if the name is available.
connecting local repo to remote repo.
pushing changes to remote repo(upstream)

that’s it, I hope now you can : Git that sh*t.

--

--

I write articles on Android Development, and problem solving.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store