Git Product home page Git Product logo

Getting started

  1. If you don't have one, create a GitHub account I'd recommend using your personal email, but you can use any ever email
  2. Fork this repository, but clicking Fork in the upper right hand corner fork screenshot
  3. Go to settings in your new repository Settings screenshot Name screenshot
  4. Change the name to match your username.
  5. Visit your new website at http://[Insert you username].github.io if you load a website then it worked!

Cloning Repository

  1. First you'll need to clone your repository to your Desktop directory, to do this we'll use the command line.
  2. Open up an app on your computer called Terminal
  3. Type cd Desktop and press enter
  4. Type git clone https://github.com/[Insert your username]/[Insert your username].github.io.git and press enter
  5. Type ls and press enter and you should see a [Insert your username].github.io in the list of outputted text. Also you can test this by looking at your compuers desktop you should see a folder with the same name

Using terminal

Saving changes to GitHub

cd ~/Desktop/[Insert you username].github.io
git add .
git commit -m "Insert your message"
git push

If your forget to add -m "Insert your message" you'll get put into a program called VIM. In order to leave VIM, type :q and press enter.

Adding remote branch

  1. Commit all your local changes by following the instruction in Saving changes to GitHub above
  2. git remote add upstream https://github.com/jamieyu96/jamieyu96.github.io.git
  3. git fetch upstream
  4. git merge upstream/master

Merging remote changes

To merge remote changes you'll first need to add a remote branch. See the instruction above

  1. git fetch upstream
  2. git merge upstream/master

git commands

All git commands must be done from inside of your project folder

  1. git add . - Adds current changes to git.
  2. git commit -m "instert your own message her" - Makes a new git commit .
  3. git push - Pushes your commit to GitHub
  4. git pull - Pulls changes from GitHub to your project
  5. git status - Prints out the current status of your git project

I typed git commit and I for got to add a message

You're now in a program called VIM Do not panic. Simply type :q and press enter.

VIM meme

Other useful terminal commands

  • cd <folder> - Stands for "change directory" lets you change what folder your in (directory is a synonym for folder).
  • cd - cd without an argument takes you to your home folder.
  • ls - List the contents of your current folder.
  • pwd - Prints out the full file path that you're currently in.

Excercies

Other links

sharvey14's Projects

sharvey14 doesnโ€™t have any public repositories yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.