git - Cannot merge branch into master nor checkout -
i have following 3 branches in local git repo:
$ git branch all_athors_&_views * master third_requirement
when try merge "all_athors_&_views" "master", shows following error:
$ git merge all_athors_&_views [1] 27637 -bash: _views: command not found merge: all_athors_ - not can merge [1]+ exit 1 git merge all_athors_
when try checkout "all_athors_&_views", shows following error:
$ git checkout all_athors_&_views [1] 27648 -bash: _views: command not found error: pathspec 'all_athors_' did not match file(s) known git. [1]+ exit 1 git checkout all_athors_
it checkouts between "master" , "third_requirement". first time run problem , haven't been able figure out. have mention file shared virtual machine via vagrant directory (not sure if information helpful).
try wrapping branch names in quotes:
git "merge all_athors_&_views"
the error message getting:
-bash: _views: command not found
seems imply shell intepreting git merge all_athors_
1 command, , ampersand connector command _views
. future reference, might want avoid using ampersand in branch names.
here link git documentation discusses characters cannot appear unescaped in branch name. incidentally, particular problem appears shell, rather git, thing.
Comments
Post a Comment