Skip to content

Instantly share code, notes, and snippets.

@Jessiewithani
Last active March 28, 2019 08:08
Show Gist options
  • Save Jessiewithani/0cfc64f6439849eec27f505065a768dd to your computer and use it in GitHub Desktop.
Save Jessiewithani/0cfc64f6439849eec27f505065a768dd to your computer and use it in GitHub Desktop.
git process

How To Git It

Git Diagram

Git is a VCS (version control system) that allows programmers to track the changes that they've made to their code. It also allows collaborative work to be done between fellow programmers working on the same project.

You'll have to download and Install Git and create a github account, seeing how these two come hand in hand

On Git

  1. Create a directory
mkdir "directory name"
  1. Add a file to that directory
touch "file name"
  1. Add the file to the staging area
git add "file name"
  1. Create a commit
git commit -m "Commit message" (if initial commit type "Initial commit")

On Github

  1. Create a repository named after the git file you're currently working on (so there's no confusion)

Back on Git

  1. Push the file to Github
git push

Now it will be accessible on GitHub!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment