我克隆了一个HackerRank存储库,他们指示在该存储库上使用常规克隆,即
git clone https://10-142-1-122-4000.hackerrank.io/git-xxxxxxxxxx/xxxxx weather-tracker-xxxxxx
他们的说明还说:
pull
,fetch
commit
和stage
正常发生,没有任何问题,但是当我尝试push -u origin master
错误:
! [remote rejected] master -> master (Could not update working tree to new HEAD)
error: failed to push some refs to 'https://xxxxxxxxxxx-4000.hackerrank.io/git-xxxxxxxxxxxxxxxxx'
当前日志显示:
* 1f5fb0f - (HEAD -> master) edit routes (21 minutes ago) <mygithub>
* 92b4606 - add nodemon to dev enviroment (38 minutes ago) <mygithub>
* d566bbd - (origin/master, origin/HEAD) Set up project with stubs for JavaScript (89 minutes ago) <HackerRank>
* 9dca7c5 - (tag: initial) Initial Commit (3 hours ago) <HackerRank>
git clone --bare
无法解决问题。
关于如何解决此问题的任何想法?