@@ -24,7 +24,7 @@ def __init__(
2424 dir : StrPath ,
2525 progress_callback : Optional [ProgressCallbackProtocol ] = None ,
2626 ) -> None :
27- """Lite, typed, pythonic wrapper for git(1).
27+ r """Lite, typed, pythonic wrapper for git(1).
2828
2929 Parameters
3030 ----------
@@ -33,8 +33,28 @@ def __init__(
3333
3434 Examples
3535 --------
36- >>> Git(dir=tmp_path)
36+ >>> git = Git(dir=git_local_clone.dir)
37+ >>> git
3738 <Git dir=...>
39+
40+ Subcommands:
41+
42+ >>> git.remote.show()
43+ 'origin'
44+
45+ >>> git.remote.add(
46+ ... name='my_remote', url=f'file:///dev/null'
47+ ... )
48+ ''
49+
50+ >>> git.remote.show()
51+ 'my_remote\norigin'
52+
53+ >>> git.stash.save(message="Message")
54+ 'No local changes to save'
55+
56+ >>> git.submodule.init()
57+ ''
3858 """
3959 #: Directory to check out
4060 self .dir : pathlib .Path
@@ -2370,7 +2390,7 @@ def run(
23702390 check_returncode : Optional [bool ] = None ,
23712391 ** kwargs : Any ,
23722392 ) -> str :
2373- r"""Wraps `git submodule <https://git-scm.com/docs/git-remote>`_.
2393+ r"""Wraps `git remote <https://git-scm.com/docs/git-remote>`_.
23742394
23752395 Examples
23762396 --------
@@ -2405,7 +2425,7 @@ def add(
24052425 log_in_real_time : bool = False ,
24062426 check_returncode : Optional [bool ] = None ,
24072427 ) -> str :
2408- """git submodule add
2428+ """git remote add
24092429
24102430 Examples
24112431 --------
@@ -2441,7 +2461,7 @@ def rename(
24412461 log_in_real_time : bool = False ,
24422462 check_returncode : Optional [bool ] = None ,
24432463 ) -> str :
2444- """git submodule rename
2464+ """git remote rename
24452465
24462466 Examples
24472467 --------
@@ -2474,7 +2494,7 @@ def remove(
24742494 log_in_real_time : bool = False ,
24752495 check_returncode : Optional [bool ] = None ,
24762496 ) -> str :
2477- """git submodule remove
2497+ """git remote remove
24782498
24792499 Examples
24802500 --------
@@ -2503,7 +2523,7 @@ def show(
25032523 log_in_real_time : bool = False ,
25042524 check_returncode : Optional [bool ] = None ,
25052525 ) -> str :
2506- """git submodule show
2526+ """git remote show
25072527
25082528 Examples
25092529 --------
@@ -2538,7 +2558,7 @@ def prune(
25382558 log_in_real_time : bool = False ,
25392559 check_returncode : Optional [bool ] = None ,
25402560 ) -> str :
2541- """git submodule prune
2561+ """git remote prune
25422562
25432563 Examples
25442564 --------
@@ -2572,7 +2592,7 @@ def get_url(
25722592 log_in_real_time : bool = False ,
25732593 check_returncode : Optional [bool ] = None ,
25742594 ) -> str :
2575- """git submodule get-url
2595+ """git remote get-url
25762596
25772597 Examples
25782598 --------
@@ -2614,7 +2634,7 @@ def set_url(
26142634 log_in_real_time : bool = False ,
26152635 check_returncode : Optional [bool ] = None ,
26162636 ) -> str :
2617- """git submodule set-url
2637+ """git remote set-url
26182638
26192639 Examples
26202640 --------
0 commit comments