What is Git? – Simply : Version control – According to Git



What is Git? – Simply : Version control – According to Git

0 0


Slideshow

Repo for reveal js slides

On Github jtmchorse / Slideshow

What is Git?

Simply : Version control

But what is that?

According to Git

Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.

Therefore Git will allow us to have a Master branch that we see in Production, while having feature branches that we can work on locally and then subsequently see the changes in staging.

Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).

How do I use Git?

Currently we use Git through the command line, so you'll need to dust off your terminal.

install from here

Basic Commands

  • git clone [url]
  • git branch
  • git checkout
  • git add
  • git commit -m "commit message"
  • git push
  • git pull

Less Basic Commands

  • git stash
  • git reset
  • git rm

But Firsts

At this point you will have to generate an SSH key

  • Githubs SSH tut
  • Once done email @Ops-Ticket your public RSA key
  • Don't email the private key or you will have to do the last step again

So while we wait

Code School + Git

Initial Setup

  • git clone [branch name]
  • git branch [new branch name]
  • Now you have your [new branch name] to work on

I've made changes now what

  • git status
  • git add
  • git commit -m "Commit Message"
  • git push

Changes are up now what

  • review and regression testing
  • merging of feature branch into master
  • deleting of feature branch

It's been a while since I've update

  • git pull master
“Everything is going to be amazing in Drupal 7 ” Tony Jacobson