Bitbucket使用说明:
使用者请直接看第一步,第二步和egit使用说明,
需要自己创建仓库的可以看三四步

然后按步骤创建一个教程代码库

可以选择下载SourceTree 和git SourceTree是一个客户端,图形界面,挺方便的

主界面有个教程,挺详细的,可以看看

第二步:设置中文
点右上角的小人图标,然后点击“Manage account”

在Account settings 里最下面有个选项,Language,改成Chinese

第三步:创建仓库


创建完可以用SourceTree复制代码进去,点击用SourceTree克隆

会弹出这个窗口,可以更改目标路径(必须是空文件夹,不存在的最好)

里面现在是空的,点击在文件管理器中打开

把代码复制到这个文件夹

然后查看SourceTree,里面就有未保存的文件(如果没有,点击下日志/历史)点击“未暂存的文件”

就会变成“已暂存的文件”

然后点击工具栏的”提交”

输入需要说明的文字,点击提交

这时候你可以看到分支那里有了东西,不过这个时候还只是在你的本地

点击推送,就会放到服务器上


点击显示完整输出,可以看进度,如果变绿,出现执行成功,就行了,文件多会稍微慢点

然后去网站,刷新一下页面,就会出来信息

第四步:管理仓库
源码部分可以下载和查看源码


提交部分可以查看提交记录


点击提交下面的蓝字,可以查看这个版本修部分,每个变化文件都会显示出来,红色表示删除代码,绿表示添加代码,十分方便查看这个版本更新了什么,

旁边的通知图标可以留言评论

第五步:代码更新
代码更新的一般步骤:克隆代码——修改——提交——推送
Eclipse可以用egit方便完成,Qt有git工具,Vs有git插件,其他情况可以用sourceTree完成
具体的,可以查询其他资料,因为我目前是用java,我会再写一个egit的使用方法