Bash commands¶
command | explanation |
|---|---|
| print working directory |
| change directory to path |
| make a directory called name |
| list, show the files |
| create an empty file |
| repeat ‘message’ to stdout |
| write redirect |
| append redirect |
| remove (delete) |
| concatenate a file to standard out (show the file contents) |
| Moves file from path to another (can be used to rename only) |
| Copies the content of the file from into a new file (can be with or without the same name) |
| search the file system (paths) for matches to a pattern |
git commands¶
command | explanation |
|---|---|
| describe what relationship between the working directory and git |
| make a new folder locally and download the repo into it from url, set up a remote to url |
| add file to staging area |
| commit using the message in quotes |
| send to the remote |
| show list of commit history |
| list branches in the repo |
| create a |
| create a |
| apply or fetch and apply changes from a remote branch to a local branch |
| the |
| Undo changes made to file since last commit |
| Remove file from staging area to be commited without undoing the changes done to it |