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.

  1. git commit -a --amend
  2. git log -1 // check change-id present in log message
  3. git 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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -