Skip to content

Instantly share code, notes, and snippets.

@maazghani
Created October 17, 2021 09:47
Show Gist options
  • Save maazghani/042a73ebcc048c11b8acd1ad533daf8e to your computer and use it in GitHub Desktop.
Save maazghani/042a73ebcc048c11b8acd1ad533daf8e to your computer and use it in GitHub Desktop.

Terminal Commands

git

git clone [the-url]
ex: git clone github.com/maazghani/site.git

# pull the latest code
git pull

# create a branch
git checkout -b ammi-branch

moving around

# list files
ls

## list files in a list
ll

# move into a directory
cd directory

# move out of a directory
cd ..

special commands

# to run browser sync
browser-sync start --server --directory --files "*"

# something is running, i want to stop it in the terminal
ctrl-C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment