Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Allen\Documents\GitHub\project2-pd7 [master]> git status
# On branch master
# Your branch is ahead of 'origin/master' by 5 commits.
#
nothing to commit, working directory clean
C:\Users\Allen\Documents\GitHub\project2-pd7 [master]> git push
Counting objects: 36, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (30/30), 3.93 KiB, done.
Total 30 (delta 8), reused 1 (delta 0)
error: unpack failed: index-pack abnormal exit
To https://github.com/stuycs-ml7/project2-pd7.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'https://github.com/stuycs-ml7/project2-pd7.git'
我仍然试图用github找到我的海腿,但这些不断的问题正在令我失望。任何人都可以在普通话中解释解决方案,这样我就能理解了吗?Github分支提前5个提交,如何解决?
git pull返回已经是最新的。我不确定你提交合并的意思,所以我刚输入(git add。)和(git commit -m“”)。我认为我做了一些错误,因为现在它说: 你的分支在6次提交之前领先于'origin/master'。 – user1869558