fatal: Could not read from remote repository. Github error: failed to push some refs to
fatal: Could not read from remote repository. Github error: failed to push some refs to
尝试使用 Git bash 添加一个很大的 csv 文件。我也克隆了存储库,它存在于我的 git bash 中,它以名称 origin
存在。但是我无法将 csv 文件推送到原点。
将 Filename.csv 推送到我的 git 中心的代码。下面的代码工作正常。
$ git push origin master
$ cd path_of_directory
$ git lfs install
$ git lfs track "*.csv"
$ git add Filename.csv
$ git commit -m "Filename.csv"
$git remote add origin 'https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git'
$git remote
origin
代码有问题
$ git push origin master
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
用 https link 替换原点会出现以下错误:
$ git push 'https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git' master
--->ref master:: Error in git rev-list --stdin --objects --not --remotes=https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git --: exit status 128 fatal: bad object 3cc9272e299e6c7a9cbfe02b36060691f7f86b17
error: failed to push some refs to 'https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git'
以下步骤对我有用:
$git init
$git add .
$git commit -m 'message'
$git remote add origin 'https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git'
$ git pull --rebase origin master
$ git push origin master
这对我有用
尝试使用 Git bash 添加一个很大的 csv 文件。我也克隆了存储库,它存在于我的 git bash 中,它以名称 origin
存在。但是我无法将 csv 文件推送到原点。
将 Filename.csv 推送到我的 git 中心的代码。下面的代码工作正常。
$ git push origin master
$ cd path_of_directory
$ git lfs install
$ git lfs track "*.csv"
$ git add Filename.csv
$ git commit -m "Filename.csv"
$git remote add origin 'https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git'
$git remote
origin
代码有问题
$ git push origin master
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
用 https link 替换原点会出现以下错误:
$ git push 'https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git' master
--->ref master:: Error in git rev-list --stdin --objects --not --remotes=https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git --: exit status 128 fatal: bad object 3cc9272e299e6c7a9cbfe02b36060691f7f86b17
error: failed to push some refs to 'https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git'
以下步骤对我有用:
$git init
$git add .
$git commit -m 'message'
$git remote add origin 'https://github.com/Shailaja-Gupta/Marketing-and-Sales-Machine-Learning.git'
$ git pull --rebase origin master
$ git push origin master
这对我有用