Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleCheat sheet

github-git-cheat-sheet.pdf

 


  1. Create a GitHub account
  2. Download GitHub console
  3. If you want the GUI, download it from here

...

  1. Open the git console and navigate to the location that you want manage with git
  2. Type git init - this will create the git database in that directory
  3. Type git add . - this will add all the files in the current directory and sub directories (recursively) the local git db, the files remain in staged state until committed 
  4. Type git commit -m <some message in single quotes> - this move the files from the staged state to commited
  5. Type git push -u origin master

The files that have just been committed have not been pushed to the GitHub remote server so we need to do this

...

  1. Create a directory (anywhere of your choosing) on the local machine
  2. Use git clone <url to github repository>
  3. You don't have to use git fetch < branch>
  4. Read more at especially the paragraph headed Fetching and Pulling from Your Remotes
  5. Once the clone has completed you can edit the content as normal

...