git - How to copy one branch with commit history to another new repo? -


i clone 1 branch git repo new git repo b. prefer include commits history.

everything ok following http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/. when try push remote, errors happened.

remote: error: invalid comitter email: someone@hehe.com ... remote: valid email addresses: ... remote: error: hook declined update refs/heads/mybranch ssh://git@git.internal/myrepo.git  ! [remote rejected] mybranch -> mybranch (hook declined) error: failed push refs 'ssh://git@git.internal/myrepo.git' 

i know past commits done person, not in list of valid email addresses more. how ignore kind of verification? there other way this?

update

asked our admin change remote settings. works.

you should ignore hooks:

git push --no-verify 

from git-push documentation:

--[no-]verify toggle pre-push hook (see githooks[5]). default --verify, giving hook chance prevent push. --no-verify, hook bypassed completely.

edit noted @torek, tag [remote rejected] indicates problem comes remote. setting flags locally won't help. need @ settings on git.internal server.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -