Skip to content

A toy repo to teach lexos team for some basic git skills

Notifications You must be signed in to change notification settings

WheatonCS/ToyRepo

Repository files navigation

Toy Repo

This is a temporary repo to teach the Lexos team about basic git.

Important files

  • .gitignore
    • all the files/directories that are listed in this file will be ignored by git. At this moment we are only ignoring the .idea folder which contains project specific settings of each developers IDE (PyCharm).
  • .git/
    • the folder with all the git information.

Commands

  • add
    • add the files that you have edited and want to push to the remote repo
  • commit
    • make a local image of the current program
    • kind of like creating a restore point
  • pull
    • sync from the remote to local
  • push
    • sync from the local to remote
  • reset (--soft --hard and undo add)
    • reset your program status to a commit
      • --soft only reset your git info to that restore point (thereby losing all the commits in between)
      • --hard reset all the program, including the git info to a certain commit
      • undo add command
  • status
    • show the status of the current git information
  • diff
    • show the difference between current and a commit (default is the latest commit)

A decent tutorial on git

https://www.atlassian.com/git/tutorials/saving-changes/git-add

Sample session

$ vi readme.md
$ git add readme.md
$ git commit -m "small edits to readme; just practing"
$ git pull
$ git push

GitHub flavored MarkDown

  • Header

    • # creates an <h1> tag.

    • ###### creates an <h6> tag.
  • Emphasis

    • _Italic_ will be Italic or *Italic* will also be Italic.
    • __bold__ will be bold or **bold** will also be bold.
    • _**Combined**_ will be Combined.
  • Images GitHub logo

  • Links

  • Unordered List

    * Item 1
    * Item 2

    Example:

    • Mark LeBlanc

      • Computer Science Professor
      • Wheaton College
    • Weiqi

      • Computer Science and Mathematics double Major
      • Wheaton College
  • Ordered List

    1. Item 1
    2. Item 2

    Example:

    1. Wheaton College
    2. Norton
    3. MA
    4. USA
    5. North America
  • Task Lists
    - [ ] item one
    - [ ] item two

    Example:

    • Javascript update
    • CSS update
    • Hello
  • Emoji

    • GitHub supports emoji!
    • :emoji_name_here:
    • :octocat: :octocat:
    • GitHub Emoji List
  • Blockquotes

    • > creates a blockquote

      This is an example blockquote

  • @mentions creates @phuens

  • Strikethrough: <del> tags </del> creates strikethrough

  • Table

    First Header Second Header
    Content cell 1 Content cell 2
    Content column 1 Content column 2

    Example:

    First Header Second Header
    Content cell 1 Content cell 2
    Content column 1 Content column 2
  • Fenced Code Block

    ```javascript function test(){
    console.log("Enter a message");
    }
    ```

    Example:

    function test(){
        console.log("Happy birthday, Weiqi!");
    }

Happy Birthday Weiqi!

About

A toy repo to teach lexos team for some basic git skills

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published