blob: dacc77dfe4a284a66be168de21c6d9451f734815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
|
%global _empty_manifest_terminate_build 0
Name: python-gitutor
Version: 0.6.5
Release: 1
Summary: A command line app that makes Git easy.
License: MIT
URL: https://gitutor.io
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f5/d9/ad7b5bf0333ac622e5a34d1b2154097493345b05fa127dba130ce959fb7f/gitutor-0.6.5.tar.gz
BuildArch: noarch
Requires: python3-click
Requires: python3-GitPython
Requires: python3-gitdb
Requires: python3-smmap
Requires: python3-pyinquirer
Requires: python3-pygithub
Requires: python3-colorama
Requires: python3-requests
%description
[](https://pypi.python.org/pypi/gitutor)
[](https://pypi.python.org/pypi/gitutor)
# Gitutor
Welcome to Gitutor. This tool is meant to get you up and running using gitmin the shortest time possible while learning on the go.
Gitutor is a command line application that wraps git and provides beginner friendly versions of git's commands. It's Git the easy way.
You can check out the tutorial and a further explanation of the commands in the [docs](https://gitutor.io/guide). And don't worry if you forget how to use a command you can always run
$ gt <command> --help
If you have any problems please send us an email at support@gitutor.io or open an issue in our [repo](https://github.com/artemisa-mx/gitutor/issues), we usually answer in less than a day.
## Available commands
1. gt init - Initialize your local and remote repository.
2. gt save - Save you changes in the local and remote repository.
3. gt goback - Return to a previous commit.
4. gt compare - Compare the current state with a previous commit.
5. gt ignore - Make git ignore selected files.
6. gt lesson - See gitutor lessons and documentation.
## Installation guide
> **NOTE**: pipx and gitutor work with Python3.6+
In order to use gitutor without any dependencies version conflicts we recommend installing it using pipx. Pipx creates a virtual environment for your package and exposes its entry point so you can run gitutor from anywhere.
To install pipx and configure the $PATH run the following commands
For Windows:
$ python -m pip install pipx
$ python -m pipx ensurepath
For MacOS use:
$ brew install pipx
For Linux use:
$ python3 -m pip install pipx
$ python3 -m pipx ensurepath
> **NOTE**: You may need to restart your terminal for the path updates to take effect.
Once pipx is installed, run the following to install gitutor:
$ pipx install gitutor
And to upgrade gitutor to its latest version you only need to run:
$ pipx upgrade gitutor
To install gitutor without using pipx just run:
$ pip install gitutor
## Additional notes
Before using gitutor you need to have Git available in your computer. You can check the installation guide [here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
It's also recommended to store your GitHub credentials so you won't have to authenticate everytime you realize a push or pull. You can do this by running
$ git config --global credential.helper store
This will store your credentials in a plain-text file (.git-gredentials) under your project directory. If you don't like this you can use any of the following approaches:
On Mac OS X you can use its native keystore with
$ git config --global credential.helper oskeychain
For Windows you can install a helper called [Git Credential Manager for Windows](https://github.com/Microsoft/Git-Credential-Manager-for-Windows) and then run
$ git config --global credential.helper manager
If you like what we're doing you can buy as a [coffee](https://ko-fi.com/artemisamx)
%package -n python3-gitutor
Summary: A command line app that makes Git easy.
Provides: python-gitutor
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-gitutor
[](https://pypi.python.org/pypi/gitutor)
[](https://pypi.python.org/pypi/gitutor)
# Gitutor
Welcome to Gitutor. This tool is meant to get you up and running using gitmin the shortest time possible while learning on the go.
Gitutor is a command line application that wraps git and provides beginner friendly versions of git's commands. It's Git the easy way.
You can check out the tutorial and a further explanation of the commands in the [docs](https://gitutor.io/guide). And don't worry if you forget how to use a command you can always run
$ gt <command> --help
If you have any problems please send us an email at support@gitutor.io or open an issue in our [repo](https://github.com/artemisa-mx/gitutor/issues), we usually answer in less than a day.
## Available commands
1. gt init - Initialize your local and remote repository.
2. gt save - Save you changes in the local and remote repository.
3. gt goback - Return to a previous commit.
4. gt compare - Compare the current state with a previous commit.
5. gt ignore - Make git ignore selected files.
6. gt lesson - See gitutor lessons and documentation.
## Installation guide
> **NOTE**: pipx and gitutor work with Python3.6+
In order to use gitutor without any dependencies version conflicts we recommend installing it using pipx. Pipx creates a virtual environment for your package and exposes its entry point so you can run gitutor from anywhere.
To install pipx and configure the $PATH run the following commands
For Windows:
$ python -m pip install pipx
$ python -m pipx ensurepath
For MacOS use:
$ brew install pipx
For Linux use:
$ python3 -m pip install pipx
$ python3 -m pipx ensurepath
> **NOTE**: You may need to restart your terminal for the path updates to take effect.
Once pipx is installed, run the following to install gitutor:
$ pipx install gitutor
And to upgrade gitutor to its latest version you only need to run:
$ pipx upgrade gitutor
To install gitutor without using pipx just run:
$ pip install gitutor
## Additional notes
Before using gitutor you need to have Git available in your computer. You can check the installation guide [here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
It's also recommended to store your GitHub credentials so you won't have to authenticate everytime you realize a push or pull. You can do this by running
$ git config --global credential.helper store
This will store your credentials in a plain-text file (.git-gredentials) under your project directory. If you don't like this you can use any of the following approaches:
On Mac OS X you can use its native keystore with
$ git config --global credential.helper oskeychain
For Windows you can install a helper called [Git Credential Manager for Windows](https://github.com/Microsoft/Git-Credential-Manager-for-Windows) and then run
$ git config --global credential.helper manager
If you like what we're doing you can buy as a [coffee](https://ko-fi.com/artemisamx)
%package help
Summary: Development documents and examples for gitutor
Provides: python3-gitutor-doc
%description help
[](https://pypi.python.org/pypi/gitutor)
[](https://pypi.python.org/pypi/gitutor)
# Gitutor
Welcome to Gitutor. This tool is meant to get you up and running using gitmin the shortest time possible while learning on the go.
Gitutor is a command line application that wraps git and provides beginner friendly versions of git's commands. It's Git the easy way.
You can check out the tutorial and a further explanation of the commands in the [docs](https://gitutor.io/guide). And don't worry if you forget how to use a command you can always run
$ gt <command> --help
If you have any problems please send us an email at support@gitutor.io or open an issue in our [repo](https://github.com/artemisa-mx/gitutor/issues), we usually answer in less than a day.
## Available commands
1. gt init - Initialize your local and remote repository.
2. gt save - Save you changes in the local and remote repository.
3. gt goback - Return to a previous commit.
4. gt compare - Compare the current state with a previous commit.
5. gt ignore - Make git ignore selected files.
6. gt lesson - See gitutor lessons and documentation.
## Installation guide
> **NOTE**: pipx and gitutor work with Python3.6+
In order to use gitutor without any dependencies version conflicts we recommend installing it using pipx. Pipx creates a virtual environment for your package and exposes its entry point so you can run gitutor from anywhere.
To install pipx and configure the $PATH run the following commands
For Windows:
$ python -m pip install pipx
$ python -m pipx ensurepath
For MacOS use:
$ brew install pipx
For Linux use:
$ python3 -m pip install pipx
$ python3 -m pipx ensurepath
> **NOTE**: You may need to restart your terminal for the path updates to take effect.
Once pipx is installed, run the following to install gitutor:
$ pipx install gitutor
And to upgrade gitutor to its latest version you only need to run:
$ pipx upgrade gitutor
To install gitutor without using pipx just run:
$ pip install gitutor
## Additional notes
Before using gitutor you need to have Git available in your computer. You can check the installation guide [here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
It's also recommended to store your GitHub credentials so you won't have to authenticate everytime you realize a push or pull. You can do this by running
$ git config --global credential.helper store
This will store your credentials in a plain-text file (.git-gredentials) under your project directory. If you don't like this you can use any of the following approaches:
On Mac OS X you can use its native keystore with
$ git config --global credential.helper oskeychain
For Windows you can install a helper called [Git Credential Manager for Windows](https://github.com/Microsoft/Git-Credential-Manager-for-Windows) and then run
$ git config --global credential.helper manager
If you like what we're doing you can buy as a [coffee](https://ko-fi.com/artemisamx)
%prep
%autosetup -n gitutor-0.6.5
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-gitutor -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.5-1
- Package Spec generated
|