github commands

git
    git clone https://github.com/sunyongjie1984/sll
    git clone https://sunyongjie1984:Git541981101211@github.com/sunyongjie1984/sll
    vi islln.h // modify one file
    git diff
    git log
    git add islln.h
    git diff
    git log
    git commit -m "bala bala bala" islln.h
    git log
    git diff
    git push origin master

add

cd /home/sunyj/new
git init
git add *
git commit -m "add new"
git remote add origin https://sunyongjie1984:Git541981101211@github.com/sunyongjie1984/new
git push origin master

git status -s
git pull
rm isll.h
git checkout isll.h

with visul studio
 
0
 
 
with centos eclipse
 
http://www.cnblogs.com/sunyongjie1984/p/4304761.html
 

git本地有修改如何强制更新

git fetch --all
git reset --hard origin/master
原文地址:https://www.cnblogs.com/sunyongjie1984/p/5149450.html