Github 101 - dakside/pydemo GitHub Wiki

Always check this the first time you install GIT

git config user.name
git config user.email

Change your user.name and user.email to match your Github information

git config --global user.name "Le Tuan Anh"
git config --global user.email "[email protected]"

How to navigate around in your terminal http://linuxcommand.org/lts0020.php

Description command
Go up one level cd ..
See where you are pwd
List content in current folder ls
Go inside one folder cd [folder_name_here]
See the first part of a file head [file_name]
See the last part of a file tail [file_name]
See the whole content of a file cat [file_name]

Note: Try to press TAB to use auto-completion. Please remember, case matters. (e.g. Desktop is different from desktop)

We're good now. Clone something

git clone https://github.com/dakside/pydemo

To see history, try

git log

Now, make some changes. To see status, try

git status

To add a file to change list, use

git add [file-name]

To add a file to change list, use

git commit -m "I made this change because ..."

To push our changes online (to Github)

git push origin master

ALWAYS CHECK WHETHER YOUR CHANGES ARE ONLINE AFTER THIS