diff --git a/Documentation.md b/Documentation.md index dbce974..3155025 100644 --- a/Documentation.md +++ b/Documentation.md @@ -1,12 +1,44 @@ -## Documentation +## Documentation - WIP * [Terminal Commands](#terminal-commands) * [Git Commands](#git-commands) * [Glossary](#glossary) ### Terminal Commands +- `mkdir DirectoryName` - creates a new directory +- `cd DirectoryName` - goes to the wished directory +- `touch Demo.rb` - creates an empty file +- `echo "Some text" >> Filename.extension` - creates a file with some text in it +- `cat Filename` - shows what’s inside the file +- `open Filename` - opens the file from Terminal with the corresponding program/editor to edit the contents as you normally would +- `ls` - lists everything in the current folder except 'dotfiles'/hidden files (e. g. .gitignore) +- `ls -a` - lists verything (including the hidden files) +- `cd ..` - moves up to the parent directory + ### Git Commands +chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://www.badfv.de/files/Dokumente/tower_cheatsheet_dark_DE.pdf +- `git init` - creates a new local repo +- `git status` +- `git add ` - adds a single file +- `git add .` - adds all files in the directory +- `git commit` - you can enter your message on an additional screen +- `git commit -m "some message"` - you can enter your message directly +- `git branch` - which branches I have in the repo +- `git checkout -b ` - creates a new local branch and goes to it +- `git branch ` - creates a new local branch +- `git branch -d ` - deletes a local branch +- `git checkout ` - goes to the wished branch +- `git branch -M ` - renames your head branch ("head" = my current position) +- `git remote add origin ` - connects your GutHub repo with your computer +- `git pull` +- `git push` +- `git push ` +- `git remote -v` - lists all remote repos +- `git reset` +- `git reset --hard HEAD` - discards all local changes in the working copy +- `git log` - shows all local commits + ### Glossary * Commit @@ -16,3 +48,5 @@ to be continued... + +https://docs.google.com/document/d/1aSrEIcgZAemE_6Y6-_l2hheXvgzF3bCvQAbW_dlpifM/edit