error: Cannot lock ref 'refs/remotes/origin/AssetBundles': 'refs/remotes/origin/AssetBundles' exists; cannot create 'refs/remotes/origin/AssetBundles/Develop'
! [new branch] ******
error: some local refs could not be updated; try running
'git remote prune origin' to remove any old, conflicting branches
こんなエラーがでたら、pruneというのを試すといいらしい。
ソースツリーだと
フェッチ⇒リモートで消えたローカルブランチを消去(Plune)にチェック⇒実行
上記の例だと、リモートのディレクトリにAssetBundleブランチという物が存在したがPruneをした後だと、AssetBundleというディレクトリの下に、各ブランチが配置されているような設定になっていた。
多分だが、ブランチ名と同じディレクトリを新たに作ると、上記チェック入れてないとエラーになるのだろう。
参考:http://helen.hatenablog.com/entry/2016/04/04/142406