Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Tuesday, May 27, 2014

git note

To get the source code of OpenStack

git clone git://git.openstack.org/openstack/swift

https://wiki.openstack.org/wiki/Gerrit_Workflow

  1. git clone $URL (get code, and the default branch name is "master")
  2. git checkout -b $my_branch_name (create my own branch)
  3. edit code under my own branch, and run unit test.
  4. git commit -a (commit change at local)
  5. git checkout master & git remote update & git pull (update master code)
  6. git checkout $my_branch_name
  7. git rebase master   (rebase is done by step 5-8)
  8. Repeat steps 3 &4 if required.
  9. git review