Table of Contents
This repository contains all of the example source code used in the Coursera.org course called HTML, CSS and Javascript for Web Developers.
Command | Description |
---|---|
git add . | Add all changes to all files at your current working directory location. Must be a git project. |
git checkout testing | Switch to testing branch. |
git clone | Clone a Git repository to work with. |
git commit -m "Some changes" | Commit changes with comments to current working branch. |
git checkout master | Checkout the master branch (trunk). |
git checkout gh-pages | Checkout the gh-pages branch. |
git log | View commit logs for your Git branch. |
git pull | Pull down any changes that were checked into a branch (Git repository). |
git push | Push your committed changes to your currently checked out branch. |
git push origin master | Push your committed changes up to your master branch. 'master' may be subsituted for another branch. |
git status | Get the status of files in the current repo. |
Merging a branch into the master
git checkout -b 'hotfix'
Switched to new branch "hotfix"
vim index.html
git commit -a -m 'fixed the broken email address'
...
...
git checkout master
git merge hotfix
Note that CMD represents Windows and Bash is typically Linux and OS X is Macintosh
Universal Command Line Reference
Command and Usage | Examples |
---|---|
|
attrib -r -a -s -Hh index.html
All previously mentioned attributes will be cleared from index.html |
C:
Shortcut to the C: drive. Can substitue 'C' for other drive letters. |
C:
|
Note that a directory is also referred to as a folder. |
Just typing cd\ by itself goes to the base (root) of the file system and is usually the C: drive.
|
cls
Clear (reset) the screen. |
cls
|
del
Delete one or more files in the current working directory. Can be used with the '*' and the '?' wildcards.
(Note: del alone cannot be used to delete other directories. Use |
del index.html deletes index.html
|
dir
List (reveal) contents of a directory (folder). |
|
|
|
|
|
|
|
|
|
|
|