Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal commands #82

Open
wants to merge 2 commits into
base: terminal-commands
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion Notes/terminal-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,37 @@ $> # <- Look, it's just like your prompt!
Those three backticks tells Github to display a code block... The word `shell` after the backticks tells Github what _kind_ of code block it is (for highlighting purposes). Remember to check the [Github Flavored Markdown documentation](https://help.github.com/articles/github-flavored-markdown).

```shell
$> cd
$> cd ..
$> pwd
$> man
$> ls
$> ls -A
$> ls -Al
$> ls -Alh
$> git init
$> git add
$> git commit -m
$> git push
$> git status
$> git checkout <<branch name>>
$> git push origin <<branch name>>
```

* The `ls` command... (fill in the blanks)
* The `cd` changes the directory
* The `cd ..` changes the directory up by one level
* The `pwd` command shows you what your directory you're currently in
* The `man` opens up any available help manuals
* The `ls` command shows all of the files in the current directory
* The `-A` flag will show all files as a list
* The `-Al` flag will show all files as a list with more details
* The `-Alh` flag will show all files as a list with better details about file size
* The `-Alh` flag will show all files as a list with better details about file size
* The `git init` command will create a local .git repository
* The `git add` adds the files to the staging area
* The `git commit -m` saving your checkpoint and adding a message to describe the save
* The `git push` pushes the local repository to git
* The `git status` shows what files have been altered since the last commit
* The `git checkout` change to another branch
* The `git push origin <<branch name>>` pushes the new branch to git