git push一个文件夹_Git Push工作,但文件不在服务器上

我在HostGator共享帐户上设置了一个git,我刚刚完成了第一次推送.但是,当我在服务器上查看文件不存在时 – 推送没有错误或说任何事都会出错.

我使用SSH类型连接,如果这有任何区别.我跟着this guide建立了一个git repo.据我所知,远程原始URL是正确的.

本地LS:

/Applications/MAMP/htdocs/cyclesafestl [master] $ls

/Applications/MAMP/htdocs/cyclesafestl

total 32

-rw-r--r--@ 1 503 80 81 Jun 19 10:49 BETA.txt

-rw-r--r-- 1 503 80 1772 Jun 18 23:11 index.php

-rw-r--r--@ 1 503 80 616 Jun 18 22:49 info.txt

drwxr-xr-x 7 503 80 238 Jun 17 22:59 includes/

-rw-r--r-- 1 503 80 76 Jun 17 16:18 README.md

服务器LS:

./

../

HEAD

branches/

config

description

hooks/

info/

objects/

refs/

Git推送信息:

/Applications/MAMP/htdocs/cyclesafestl [master] $git push -u origin master

Counting objects: 45, done.

Delta compression using up to 8 threads.

Compressing objects: 100% (45/45), done.

Writing objects: 100% (45/45), 498.12 KiB, done.

Total 45 (delta 1), reused 0 (delta 0)

To ssh://xxx@thehivestl.com:xxx/home2/xxx/public_html/thehivestl.com/cyclesafestl

* [new branch] master -> master

Branch master set up to track remote branch master from origin.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值