mirror of
https://gitflic.ru/project/dbi471/git-switch.git
synced 2026-10-27 14:30:15 +00:00
Add docs
This commit is contained in:
1 parent
5ed649ac5c
commit
4880ce9ea4
1 file changed
+11
-4
@@ -4,14 +4,21 @@ Helper tools to move all you repos from GitHub into GitFlic
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```commandline
|
```shell
|
||||||
pip install -r requirements.txt
|
# Shell
|
||||||
|
|
||||||
|
$ pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```commandline
|
Get GitHub token from: https://github.com/settings/tokens \
|
||||||
|
Get GitFlic token from: https://gitflic.ru/settings/oauth/token
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Shell
|
||||||
|
|
||||||
python main.py \
|
python main.py \
|
||||||
--token=<your_access_token> \
|
--token=<your_access_token> \
|
||||||
--dst_folder=<your_folder> \
|
--dst_folder=<your_folder> \
|
||||||
@@ -19,4 +26,4 @@ python main.py \
|
|||||||
--is_private=<True/False>
|
--is_private=<True/False>
|
||||||
```
|
```
|
||||||
|
|
||||||
The script if gonna clone all the repos for a given access token under dst_folder/org_name/repo_name
|
The script if going to clone all the repos for a given access token under `dst_folder/org_name/repo_name`.
|
||||||
Reference in new issue
Block a user