Skip to main content

Git 未整理メモ

pull時: Your branch and 'origin/master' have diverged push時: fatal: refusing to merge unrelated histories

のように出る

いったん こうして、conflict させてから解決する (あってるのだろうか)

git pull --allow-unrelated-histories

git push しちゃったあと、 .gitignore に入れて、リポジトリからも消したい。

こうすれば出来るが、ローカルから消したくない (1) ローカルから削除+push (2) .gitignore に入れる