Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qqpann/github-rename
A helper to change .git config url after renaming your GitHub id.
https://github.com/qqpann/github-rename
Last synced: about 1 month ago
JSON representation
A helper to change .git config url after renaming your GitHub id.
- Host: GitHub
- URL: https://github.com/qqpann/github-rename
- Owner: qqpann
- License: mit
- Created: 2018-06-25T04:51:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T00:56:04.000Z (over 6 years ago)
- Last Synced: 2024-11-17T01:45:59.732Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub-rename
A helper to change .git origin url after renaming your GitHub id.## Install
```terminal
pip install github-rename
```## Usage
### Example
Change from qiugits to qqghst.```terminal
$ github-rename -f qiugits -t qqghst
Searching for ./.git/config...
Replaced line(s):url = https://github.com/qiugits/GitHub-rename.git
-> url = https://github.com/qqghst/GitHub-rename.gitMatched and replaced 1 time(s).
./.gitmodules does not exist.
``````terminal
$ github-rename -h
Usage: github-rename [OPTIONS]GitHub-rename
This cli tool helps you to rename your github urls
in .git/config and .gitmodules.Please help us improve by opening issues
in https://github.com/qqghst/GitHub-renameOptions:
-f, --from TEXT Name to change from.
-t, --to TEXT Name to change to.
--bak / --no-bak Make .bak file for backup. (Defalult is True)
--version Show the version and exit.
-h, --help Show this message and exit.
```