Top 8
git checkout hogeしてerror: pathspec 'hoge' did not match any file(s) known to gitとなったときの対処法【Git】
Oct. 13, 2019, 12:57 a.m.GitHubからpullするときにfatal: refusing to merge unrelated historiesとエラーが出るときの対処法
Aug. 13, 2019, 3:41 a.m.Secure BootのままNvidiaドライバをaptからインストールする【Ubuntu 16.04】
July 24, 2021, 9:39 a.m.NumPyで標準誤差を計算する【Python】
Feb. 4, 2020, 2:24 a.m.
ストーリー追加 Mod: The Outsider やっていく日記【Outer Wilds】
Feb. 19, 2023, 6:33 a.m.正規表現のre.search().groups()とre.findall()の違い【Python】
Oct. 11, 2019, 12:12 a.m.OverleafのBibTeXでjunsrtを使う
Jan. 8, 2019, 1:30 a.m.
Google Driveで「画像をコピー」をする
Oct. 8, 2018, 8:48 a.m.GitHubからpullするときにfatal: refusing to merge unrelated historiesとエラーが出るときの対処法
Aug. 13, 2019, 3:41 a.m.GitHubでレポジトリを作成するときにREADME.md
やライセンスを追加してやると,ローカルで作ったレポジトリをそこへpushするときにエラーが出る.
$ git push origin master
To https://github.com/TRSasasusu/ほげほげ
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/TRSasasusu/ほげほげ'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
そこで,README.md
やライセンスの差分をローカルに落とすためにpullすると,
$ git pull origin master
warning: no common commits
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
From https://github.com/TRSasasusu/ほげほげ
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
fatal: refusing to merge unrelated histories
とこちらもエラーが出てしまう.このエラーを回避してpullするには,
$ git pull --allow-unrelated-histories origin master
としてやれば良い.これであとは
$ git push origin master
でリモートレポジトリにpushできる.
Top 8
git checkout hogeしてerror: pathspec 'hoge' did not match any file(s) known to gitとなったときの対処法【Git】
Oct. 13, 2019, 12:57 a.m.GitHubからpullするときにfatal: refusing to merge unrelated historiesとエラーが出るときの対処法
Aug. 13, 2019, 3:41 a.m.Secure BootのままNvidiaドライバをaptからインストールする【Ubuntu 16.04】
July 24, 2021, 9:39 a.m.NumPyで標準誤差を計算する【Python】
Feb. 4, 2020, 2:24 a.m.
ストーリー追加 Mod: The Outsider やっていく日記【Outer Wilds】
Feb. 19, 2023, 6:33 a.m.正規表現のre.search().groups()とre.findall()の違い【Python】
Oct. 11, 2019, 12:12 a.m.OverleafのBibTeXでjunsrtを使う
Jan. 8, 2019, 1:30 a.m.
Google Driveで「画像をコピー」をする
Oct. 8, 2018, 8:48 a.m.Tags
- #Python (23)
- #量子力学 (12)
- #Unity (11)
- #量子情報 (9)
- #AoE2 (8)
- #Mac (8)
- #数学 (7)
- #Quantum Zoo (6)
- #Outer Wilds (6)
- #意識 (5)
- #NumPy (5)
- #Bash (5)
- #Linux (5)
- #相対論 (4)
- #シミュレーション (4)
- #Docker (4)
- #Android (4)
- #Qiskit (4)
- #GitHub (3)
- #Django (2)
- #情報理論 (2)
- #LaTeX (2)
- #Rust (2)
- #PyO3 (2)
- #AR (2)
- #Git (2)
- #iOS (2)
- #C++ (2)
- #正規表現 (2)
- #電磁気学 (1)
- #Google Drive (1)
- #Overleaf (1)
- #Let's Encrypt (1)
- #ポケモン (1)
- #AdMob (1)
- #Autoya (1)
- #docopt (1)
- #SymPy (1)
- #AWS (1)
- #Twitter (1)
- #URP (1)
- #iMovie (1)
- #論文 (1)
- #PyTorch (1)
- #C# (1)