git - Push on gerrit with windows -
i struggling push of data gerrit tortoisegit. created new repo , committed master. added 1 remote, private key , uploaded public key.
pulling gerrit no problem, when try push following error occurs:
remote: resolving deltas: 100% (96/96) remote: processing changes: refs: 1, done remote: error: missing change-id in commit message remote: suggestion commit message: remote: initial commit remote: remote: change-id: icb5f79b9a32abc77a99f0034ecc6a5a9ae9ef1c6 remote: hint: automatically add change-id commit messages, install commit-msg hook: remote: $ scp -p -p 29418 <server stuff>:hooks/commit-msg .git/hooks/
the big problem is, living in windows world, no $ scp .... suggestions, how can install git hook or delivering commit id?
btw git hooks --install
returns 'hooks' not git command
just download : http://www.example.com/r/tools/hooks/commit-msg
, copy .git/hooks folder.
or can download gerrit review
-- update --
if add commit hook after making commit locally, case, need amend last commit. amending last commit without making real change add change-id log message.
git commit -a --amend
git log -1
// check change-id present in log messagegit push origin head:refs/for/master
-- update 2 --
if me , have lot of projects @ create clones every , might want setup git installation commit-msg hook installed default. can copying commit-msg git template folder. on win7 system can found here:
c:\program files (x86)\git\share\git-core\templates\hooks
the next time create new clone not need download commit-msg again.
Comments
Post a Comment