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 5 years have passed since last update.

Unity gitでハマったメモ

Last updated at Posted at 2019-10-31

・クローンで毎回hung upする
クローンの深さを1にして最新の履歴のみ取得
depth1
git fetch --unshallow
過去の履歴全取得!

・コミットできないアセットがあった(メンテナー)
git status --ignored
で確認、無視されてるか確認
git add -f filename
で強制追加!

・大容量すぎてpushできない

git config --global http.postBuffer 52428000

・マージしようとしたら他のブランチが出ない
git configをメモ帳で開き
[remote "origin"]

fetch = +refs/heads/*:refs/remotes/origin/*
を記述しまたフェッチ
*はワイルドカード、全検索

・いらねぇファイルまでマージされとるやん

git revert -m 1 コミット番号
でも結局おかしくなったから取り直した

・久々のフェッチができぬ
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504

export git_curl_verbose=1
やったけどだめ
再クローン

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?