【问题标题】:Github: Cant pull the repository inside the amazon ec2. Exhibits message that the github repo is already presentGithub:无法拉取亚马逊 ec2 中的存储库。显示 github 存储库已经存在的消息
【发布时间】:2019-07-19 14:16:12
【问题描述】:

两天前,我在前端文件夹中的亚马逊 ec2 中推送了一个 github 存储库。推送后,他在前端文件夹中创建了一个名为(在本例中为银行)的文件夹。

由于代码中的一些更改,我从前端文件夹中删除了银行文件夹,并再次推送了新的更新 github repo。但该文件夹未显示。

银行文件夹不可见。

如何纠正这个问题。`当我拉出回购消息时

        ubuntu@ip:~/frontend$ git pull github15 master
        **output:**
        From https://github.com/naikvaibhav/bank-app
        * branch            master     -> FETCH_HEAD
        * [new branch]      master     -> github15/master
        Already up-to-date.

       but when i go through the frontend folder, i get this as the 
       ubuntu@ip:~/frontend$ ls
       **output:**
       news-app  pepper-cloud-blog  projects-profile  wallpaper- 
       gallery  weather-app `

【问题讨论】:

标签: github


【解决方案1】:

解决方案是首先我们需要使用 cmd 检查所有遥控器
git fetch --all 然后输入cmd git reset --hard origin/master

【讨论】:

    猜你喜欢
    • 2012-12-05
    • 2012-09-23
    • 2014-01-20
    • 1970-01-01
    • 2019-01-26
    • 2018-11-08
    • 2016-04-24
    • 1970-01-01
    • 2011-04-23
    相关资源
    最近更新 更多