| 1 |
"""usage: git checkout [options] <branch> |
| 2 |
git checkout [options] <branch> -- <file>... |
| 3 |
|
| 4 |
-q, --quiet suppress progress reporting |
| 5 |
-b <branch> create and checkout a new branch |
| 6 |
-B <branch> create/reset and checkout a branch |
| 7 |
-l create reflog for new branch |
| 8 |
-t, --track set upstream info for new branch |
| 9 |
--orphan <new branch> |
| 10 |
new unparented branch |
| 11 |
-2, --ours checkout our version for unmerged files |
| 12 |
-3, --theirs checkout their version for unmerged files |
| 13 |
-f, --force force checkout (throw away local modifications) |
| 14 |
-m, --merge perform a 3-way merge with the new branch |
| 15 |
--conflict <style> conflict style (merge or diff3) |
| 16 |
-p, --patch select hunks interactively |
| 17 |
|
| 18 |
""" |
| 19 |
from docopt import docopt |
| 20 |
|
| 21 |
|
| 22 |
if __name__ == '__main__': |
| 23 |
print(docopt(__doc__)) |