Github and Website Workshop/local repo: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Auria
(Created page with "Welcome to the Github/git section of the [https://openhatch.org/wiki/Github_and_Website_Workshop Github and Website Workshop]! '''Checklist before you begin:''' * Completed [...")
 
imported>Auria
No edit summary
Line 31: Line 31:
(Estimated time 20 minutes)
(Estimated time 20 minutes)


Let's learn some git commands at try.github.io/
Let's learn some git commands at htto://try.github.io/


'''Note:''' Steps 1.18 to the end include command we won't be using today.
'''Note:''' Steps 1.18 to the end include command we won't be using today.

Revision as of 06:23, 9 February 2015

Welcome to the Github/git section of the Github and Website Workshop!

Checklist before you begin:

  • Completed setup (Github account, git and text editor on laptop, optional Namecheap domain registered)
  • Have name tag
  • Have two different coloured sticky notes

So what is git/Github?

(Estimated time: 40 min)

  • Allows groups of people to work on the same documents (often code) at the same time, and without stepping on each other's toes
Example: Aliah and Erica are working on a website
Aliah just added a link to a funny video. Erica just added a picture of them.
What should the new document look like? Git helps you resolve this.
  • Great for individual projects too - we'll be using it with our code today
    • backs up your files (like DropBox)
    • lets you show your code to other people (and download other people’s code!)
    • can host your website! (stores the files for your website and lets it be accessed from the internet)

Git vs. Github

  • Git: a revision control system, a tool to manage the history of your code (the tool we are learning to use in the terminal today)
  • GitHub: a hosting service for git repositories (where other people can look at your code online and where your website will be hosted)

Try git

(Estimated time 20 minutes)

Let's learn some git commands at htto://try.github.io/

Note: Steps 1.18 to the end include command we won't be using today.

Branching is very useful and feel free to check it out and ask the mentors about it, but it we will not be talking about it as a group in this workshop.