I’m trying to figure out how to commit some code for review. Following:
Created a ssh alias. Cloned using: “git clone ssh://asterisk/asterisk”.
Set name and email. Installed the gerrit commit hook: “git review -s”.
Try to change to asterisk 13 for creating a patch: “git checkout 13”.
This fails with: error: pathspec ’13’ did not match any file(s) known to git.
“git checkout -b 13” appears to fix this.
Created a new branch:
git checkout -b ASTERISK-27284
Did some work, added and commited this work. So far so good.
Now trying to submit this: “git review 13”
Fails with: Somehow some way, UPGRADE.txt and UPGRADE-13.txt are changed and I can’t find any way to discard/ignore/remove/skip these changes. Clearly I don’t understand git and the way it handles conflicts it created by itself.
What is going wrong? What is the magical git command to just commit the
2 files I added/commited for review?