GitHub上传

1创建新的仓库(Repsitory)并提交代码

    1>登陆GitHub后创建新仓库(不要勾选Initialize this repository with a README,可以后期手动在本地库添加并提交),copy好库的地址,像:https://github.com/CaptainNYS/LT-Linear-Threshold-Model-.git

     2>在本地库(你想要上传的文件夹)下右击选择 git bash here,出现弹框

    3>依次输入(括号内为注释)

       git init 

       git add .

       git commit -m "first commit"(引号内为自己添加的提交注释)

       git remote add origin https://github.com/CaptainNYS/LT-Linear-Threshold-Model-.git (自己库的https链接)

       git push -u origin master

  

 2向创建好的库提交代码

        不再需要git init,其余步骤同上。

        注意:之后提交时,输入git remote add origin https://github.com/CaptainNYS/LT-Linear-Threshold-Model-.git ,回车后会出现报错:fatal: remote origin already exists.

        此时输入 git remote rm origin 回车后继续输入 上一条命令即可。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值