Skip to content

Instantly share code, notes, and snippets.

@hannibalhuang
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannibalhuang/15871a332ecd271f16ff to your computer and use it in GitHub Desktop.
Save hannibalhuang/15871a332ecd271f16ff to your computer and use it in GitHub Desktop.
Basic Git Setup For OPNFV Parser
zhipengh@zhipeng-pc:~/Workspace$ git clone ssh://zhipengh@gerrit.opnfv.org:29418/parser && scp -p -P 29418 zhipengh@gerrit.opnfv.org:hooks/commit-msg parser/.git/hooks/
zhipengh@zhipeng-pc:~/Workspace$ cd parser/
zhipengh@zhipeng-pc:~/Workspace/parser$ git review -s
Creating a git remote called "gerrit" that maps to:
ssh://zhipengh@gerrit.opnfv.org:29418/parser.git
zhipengh@zhipeng-pc:~/Workspace/parser$ mkdir yang2tosca/
zhipengh@zhipeng-pc:~/Workspace/parser$ vim yang2tosca/README.md
zhipengh@zhipeng-pc:~/Workspace/parser$ mkdir tosca2heat/
zhipengh@zhipeng-pc:~/Workspace/parser$ vim tosca2heat/README.md
zhipengh@zhipeng-pc:~/Workspace/parser$ mkdir docs/
zhipengh@zhipeng-pc:~/Workspace/parser$ vim docs/intro.md
zhipengh@zhipeng-pc:~/Workspace/parser$ git add .
zhipengh@zhipeng-pc:~/Workspace/parser$ git commit --signoff --all -m "JIRA:PARSER-1 -Basic Setup For Parser Gerrit Repo"
[master 4de48c5] JIRA:PARSER-1 -Basic Setup For Parser Gerrit Repo
3 files changed, 3 insertions(+)
create mode 100644 docs/intro.md
create mode 100644 tosca2heat/README.md
create mode 100644 yang2tosca/README.md
zhipengh@zhipeng-pc:~/Workspace/parser$ git review
remote:
remote: Processing changes: new: 1, refs: 1, done
remote:
remote: New Changes:
remote: https://gerrit.opnfv.org/gerrit/170
remote:
To ssh://zhipengh@gerrit.opnfv.org:29418/parser.git
* [new branch] HEAD -> refs/publish/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment