This python script is designed to fork a repository, clone it locally, and set the upstream url for the newly created repository to the original url. I found myself duplicating this task far too much, so this script should help reduce the amount of me doing all these tasks.
This is my initial steps to learning python.
$ python git-fork-clone-upstream.py https://github.com/jenkinsci/jenkins
It will fork the repo (if it isn't forked already), and clone it locally.
- Read from
~/.github
file with just the oauth token not need to set it as an environment variable. (done) - Would be nice to have a message about failing to clone repo because directory already exists. (done)
- Might be better to have an argument instead of using os.environ. (done)
MIT
can u share what is in github file