Skip to content

Instantly share code, notes, and snippets.

@marianabocoi
Last active December 2, 2018 14:30
Show Gist options
  • Save marianabocoi/f729c1fede62209e5dce8171d8d0b0d7 to your computer and use it in GitHub Desktop.
Save marianabocoi/f729c1fede62209e5dce8171d8d0b0d7 to your computer and use it in GitHub Desktop.
# Commandline recap
#go to folder
cd <foldername>
## go to parent folder
cd ..
# list files inside current directory
ls
# list all files in directory
ls -a
# Git intro
## Initialize git repository
git init
# See the status
git status
# added .gitignore file to ignore unwanted stuff
# add files
git add <filename>
# commit files
git commit -m "message that describes change"
#config email
git config --global user.email "email@example.com"
git config --global user.name "John Doe"
#see difference
git diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment