用户名
第一步,你需要告诉git你的名字,这个名字会出现在你的提交记录中。
git config --global user.name "你的名字"
然后是你的Email,同样,这个Email也会出现在你的提交记录中,请尽量保持此Email和您的Git@OSC的注册Email一致。
git config --global user.email "你的Email"
Cone 和 Push
Clone 项目
git clone http://git.oschina.net/xxxxxx/xxxxxx.git
创建特性分支
git checkout -b $feature_name
增加新的文件
git add xxx.h xxx.cpp ...
提交变更
git commit -am "My feature is ready"
将你的提交推送到 Git@OSC,主分支使用master,其他使用自定义的名称
git push origin $feature_name
在提交页面你可以查看你的变更!
以上就是
为各位朋友分享的 相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多 等着你!