github使用記錄

gitHub的使用:
一:checkout a project from repo.
①:打開git shell
②:執行如下命令:
    git clone  "project url"
    例如: checkout struts2的源碼:
    git clone git://github.com/apache/struts2.git
    "project url":能夠從gitHub上對應的項目中找到的.
㈡:上傳本地更新到gitHub,執行以下命令
①:進入到project directory,例如:個人工程是listView,因此進入到listView目錄
cd ./listView
②:執行如下操做
    git push origin master

㈢:獲取更新;
    git pull origin mastergit

相關文章
相關標籤/搜索