Skip to content

easily update remote URL of your Git-repo in local.

License

Notifications You must be signed in to change notification settings

88saiba/rinokopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Rinokopy | 梨乃子py

Overview

Allows you to easily update the remote URL of your Git-repo in local machine. This is particularly
useful when working with multiple repositories and needing to switch the remote URL frequently.

Script Details

First Step

  • Dependencies: This script uses the subprocess module, which is part of the Python standard library.
  • Configuration: In rinoko.py, make sure to replace <username> and <access_token> in the script with
    your GitHub username and personal access token, respectively.

Alias Suggestion

To make it easier to run the script, you can create an alias called rinoko by adding it to your .bashrc or .zshrc file:

alias rinoko='python /path/to/rinoko.py'

Replace /path/to/rinoko.py with the actual path to the script on your system.

Once the alias is set, you can update the remote URL by simply running the following command in the terminal while inside the desired repository:

rinoko <repo_name>

For example:

rinoko your-repo

Notes

  • Ensure you have the necessary permissions to modify the Git repository's remote URL.
  • For security reasons, avoid sharing the script with sensitive information like personal access tokens. Use placeholders or environment variables as needed.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

easily update remote URL of your Git-repo in local.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages