如何从git remote show中删除一些东西?

时间:2018-01-21 16:12:11

标签: git github

我在Github上有一个我删除的存储库,也是本地存储库。但是,我似乎无法推动;它给我一个错误,说

Remote "origin" does not support the LFS locking API. Consider disabling it with:
$ git config 'lfs.Personal_Projects.git/info/lfs.locksverify' false
Counting objects: 203, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (193/193), done.
Writing objects: 100% (203/203), 15.24 MiB | 4.62 MiB/s, done.
Total 203 (delta 66), reused 1 (delta 0)
remote: Resolving deltas: 100% (66/66), done.
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: is denied, because it will make the index and work tree inconsistent
remote: with what you pushed, and will require 'git reset --hard' to match
remote: the work tree to HEAD.
remote: 
remote: You can set the 'receive.denyCurrentBranch' configuration variable
remote: to 'ignore' or 'warn' in the remote repository to allow pushing into
remote: its current branch; however, this is not recommended unless you
remote: arranged to update its work tree to match what you pushed in some
remote: other way.
remote: 
remote: To squelch this message and still keep the default behaviour, set
remote: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To Personal_Projects/
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'Personal_Projects/'

我已经尝试查找每个错误但无法修复它。任何新的建议都将受到高度赞赏!

当我做git远程演出时,它会导致给我

Personal_Projects
origin

我想知道如何摆脱Personal_Projects以接受git push,git pull等等。

这与Git推送错误'[remote rejected] master - >不同master(分支目前正在检出)' - phd文章,因为我刚才尝试过该解决方案。

1 个答案:

答案 0 :(得分:1)

删除所有本地git文件。

克隆文件。