git继续显示在分支上修改的文件

时间:2013-12-12 05:31:36

标签: git version-control

我拉了git分支然后我的git状态显示了这个

ubuntu@ubuntu:/var/www/site1$ git status

    # On branch test
    # Changes not staged for commit:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #
    #       modified:   my.sql.gz
    #

然后我尝试了下面的命令,但我一直在做同样的事情

git checkout master -- my.sql.gz
git checkout -- my.sql.gz
git stash

当我输入git status然后我得到相同的消息

ubuntu@ubuntu:/var/www/site1$ git status

    # On branch test
    # Changes not staged for commit:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #
    #       modified:   my.sql.gz
    #

0 个答案:

没有答案