Last active
December 2, 2018 14:30
-
-
Save marianabocoi/f729c1fede62209e5dce8171d8d0b0d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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