Skip to content

Instantly share code, notes, and snippets.

@Trond240
Last active July 9, 2019 22:19
Show Gist options
  • Save Trond240/5f2106d41c30a4ea8a6cfcfd33628349 to your computer and use it in GitHub Desktop.
Save Trond240/5f2106d41c30a4ea8a6cfcfd33628349 to your computer and use it in GitHub Desktop.

Basic Beginner's Guide to Git

What is Git?

  • Git is an open source version control system that allows developers to track and manage projects locally and remotely.
  • Git can help when retriving lost information or recent versions of any project

How do we use Git?

  • We would use git to to make updates or pull old files.

The Steps of using Git

  1. Pull up terminal
  2. Create a new file

mdkdir new_project

  1. Type git init to initialize git
  2. To stage our file we would type git add
  3. To commmit our changes we made type git commit
  4. To see those changes we wouldd now type in git diff
  5. To see the status of what you are working on just in case you lose your spot we would type git status

Git work flow

  • The git workflow is the process of pulling request from GitHub and uploading those changes by using the steps listed above.

Git Flow

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