touch myfile.txt
// edit and save the file
git status
git add myfile.txt
git status
git commit -m "update"
git push -u origin master
git pull
if there is any conflict, we need to manually merge it and commit first
then update any further changes, then commit second time
finally push the 2 commits
git checkout -f -- "filename" // to discard unstaged changes. note, there is a space between -- and "filename".
git checkout -f
git reset --hard origin/master // to discard local commits
git reset --hard HEAD
git clean -fd
git status
git pull <alias> master
Recently github has released an exe to manage git with ease - see details at http://windows.github.com/