0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

git push時のエラー

Posted at

状況

いつもどおりにgithubにリポジトリを作成したあとに、

$ git init
$ git add .
$ git commit -m "Initial commit"
$ git remote add origin https://github.com/XXXX/XXXXXX.git
$ git push -u origin master

をするとエラーが発生。

エラー内容

...
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
...

どうやらデータが大きすぎるようです。

解決法

ファイル直下に.gitignireファイルを生成し、中に必要ないファイル(/dataset,*/.dbなど)を書き込と、無事pushが成功しました。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?