提交 6882c961 authored 作者: Frederic's avatar Frederic

Added doc on how to checkout another user branch.

上级 e3524afc
......@@ -87,7 +87,15 @@ You can keep you local repo up to date with central/master with those commands:
git fetch central
git merge central/master
<<<<<<< HEAD
If you want to fix a commit done in a pull request(i.e. fix small
typo) to keep the history clean, you can do it like this:
.. code-block:: bash
git checkout branch
git commit --amend
git push -u origin my_shiny_feature:my_shiny_feature
Cleaning up history
-------------------
......@@ -101,17 +109,16 @@ this. In summary:
because intermediate commits can break blame (the bisecting tool).
* `git merge --squash` will put all of the commits from your feature branch into one commit.
* There are other tools that are useful if your branch is too big for one squash.
=======
If you want to fix a commit done in a pull request(i.e. fix small
typo) to keep the history clean, you can do it like this:
To checkout another user branch in his repo:
.. code-block:: bash
git checkout branch
git commit --amend
git push -u origin my_shiny_feature:my_shiny_feature
git remote add REPO_NAME HIS_REPO_PATH
git checkout -b LOCAL_BRANCH_NAME REPO_NAME/REMOVE_BRANCH_NAME
You can find more information and tips in the `numpy development
You can find move information and tips in the `numpy development
<http://docs.scipy.org/doc/numpy/dev/gitwash/development_workflow.html>`_
page.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论