本人小白刚刚接触githup,说说自己遇到的问题及解决方法。
打开git地址,找到版本库,找到自己对应的项目仓库。获得版本库地址
eclipse在项目选择team->commit ->最好是写提交注释->有两个按钮 commit and push 和 commit用来提交代码。在此之前需要配置改项目的配置,会在git repositories存在一个项目地址仓库。
在git repositories右击选择properties 可以查看当前配置信息,点击open可以修改配置。
其中url最重要重要重要,url分解为:修改ip为外网ip,端口及其他地址不变。
然后需要team->remote->push… 需要配置地址,仓库地址,个人账号。在add create/update specification 中source ref 选择 refs/heads/master 点击add Spec,会显示出自己的项目信息,第一次push需要选中force update,不然不能成功push,接下来点next 在finsh就完成了,登录git地址查看提交信息,代码就完成了push。
万恶的程序圈,菜是原罪。
若有问题,请指教。