Development - Mario-el-khoury/Smart-Intonation GitHub Wiki

Git Commands

List of Simple Git commands and what they do...

1- git clone : copies the current state of the remote repository (on GitHub) to your local machine (local repository)

2- git status : shows the status of your local git repository. Red files are unstaged (ready to be added), green files are staged (ready to be committed)

3- git add : stages files for commit. Red -> Green. [e.g. git add . - adds all unstaged files]

4- git commit : commit changes to your local repository [e.g. git commit -m ""]

5- git push : pushes local repository state to the remote repository

6- git wdiff : shows you your unstaged changes to the files compared with the last committed version

7- git checkout : used for moving between branches [e.g. git checkout -b <branch_name>] If that branch name doesn't exist then a new branch is created

8- git stash : like a stack for storing unstaged changes, allows you to move branches but save your un-committed work. [e.g. git stash push - stores changes, git stash pop - retrieves changes]

9- git pull : updates the local repository to the state of the remote

Test Page

Hello this a test blockquote

hello
goodbye

hi
hi

c++ test:

for(int i=0; i<10; i++){ printf("hello world"); }