Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 779 Bytes

git-and-github-reference.md

File metadata and controls

19 lines (15 loc) · 779 Bytes

Bash Commands you should know

  • ll = list your files ("long listing")
  • cd <directory name> = change directory
    • cd .. = go up a directory
  • rm <filename> = delete a file
  • mkdir <directory name> = make a directory

Simple Git commands you should know

Here's the "SOP" for a typical git workflow:

  • git status = see what the status of your repo is
  • git pull = Pull junk from the Github repository
  • git add <filename> = Stage add your changes (new file, change to a file)
    • git add . = add everything in the local directory
    • git status = see what you're about to commit!
  • git commit -m "Type a commit message" = Commit your changes locally, with a message about what you're committing.
  • git push = Push your changes to the remote repo