@@ -17,6 +17,19 @@ no interest in doing so); https://repology.org tracks who packages
17
17
these versions.
18
18
19
19
20
+ # Notes for Windows Users
21
+
22
+ It seems that the default python on Windows is not fully functional,
23
+ and windows might not allow executing python scripts by default. See
24
+ [ issue 124] ( https://github.com/newren/git-filter-repo/issues/124 ) ,
25
+ [ issue 36] ( https://github.com/newren/git-filter-repo/issues/36 ) , and
26
+ [ this git mailing list
27
+ thread
] ( https://lore.kernel.org/git/[email protected] / )
28
+ for details and workarounds. I believe that Windows users installing
29
+ git-filter-repo via Scoop will be okay, but those using a manual
30
+ installation or pip install may run into these issues.
31
+
32
+
20
33
# Manual Installation
21
34
22
35
filter-repo only consists of a few files that need to be installed:
@@ -70,14 +83,26 @@ filter-repo only consists of a few files that need to be installed:
70
83
instructions regardless of whether the html version of help is
71
84
installed.
72
85
73
- So, installation might look something like
74
- ```
75
- cp -a git-filter-repo $(git --exec-path)
76
- cp -a git-filter-repo.1 $(git --man-path)/man1
77
- cp -a git-filter-repo.html $(git --html-path)
78
- ln -s $(git --exec-path)/git-filter-repo \
79
- $(python -c "import site; print(site.getsitepackages()[-1])")/git_filter_repo.py
80
- ```
86
+ So, installation might look something like the following:
87
+
88
+ 1 . If you don't have the necessary documentation files (because you
89
+ are installing from a clone of filter-repo instead of from a
90
+ tarball) then you can first run:
91
+
92
+ ` make snag_docs `
93
+
94
+ (which just copies the generated documentation files from the
95
+ ` docs ` branch)
96
+
97
+ 2 . Run the following
98
+
99
+ ```
100
+ cp -a git-filter-repo $(git --exec-path)
101
+ cp -a git-filter-repo.1 $(git --man-path)/man1
102
+ cp -a git-filter-repo.html $(git --html-path)
103
+ ln -s $(git --exec-path)/git-filter-repo \
104
+ $(python -c "import site; print(site.getsitepackages()[-1])")/git_filter_repo.py
105
+ ```
81
106
82
107
# Installation via [ pip] ( https://pip.pypa.io/ )
83
108
@@ -86,6 +111,12 @@ to run:
86
111
87
112
$ pip3 install git-filter-repo
88
113
114
+ However, the place where pip places that package might not be in your
115
+ $PATH (thus requiring you to manually update your $PATH afterwards),
116
+ and on windows the pip install might not take care of python-specific
117
+ issues for you (see "Notes for Windows Users", above). As such,
118
+ installation via package managers is recommended instead.
119
+
89
120
90
121
# Installation via Makefile
91
122
0 commit comments