當你安裝完成git的時候,你須要簡單的配置一下,打開終端:html
第一步,你須要告訴git你的名字,這個名字會出如今你的提交記錄中。git
git config --global user.name "你的名字"
而後是你的Email,一樣,這個Email也會出如今你的提交記錄中,請儘可能保持此Email和您的Git@OSC的註冊Email一致。spa
git config --global user.email "你的Email"
Clone 項目.net
git clone http://git.oschina.net/xxxxxx/xxxxxx.git
建立特性分支htm
git checkout -b $feature_name
增長新的文件blog
git add xxx.h xxx.cpp ...
提交變動get
git commit -am "My feature is ready"
將你的提交推送到 Git@OSC,主分支使用master,其餘使用自定義的名稱it
git push origin $feature_name
在提交頁面你能夠查看你的變動!ast
http://git.oschina.net/oschina/git-osc/wikis/%E5%B8%AE%E5%8A%A9
http://www.javashuo.com/article/p-tohulhry-hu.htmlemail