Convert the origin of a Git repository, from Bitbucket to GitHub or GitHub to Bitbucket.
- Made in OS : Windows 7
- Tested in OS : Ubuntu Server 10.04 LTS
- Language Used : Shell Script (Bash)
- Dependencies : git, awk, tail, sed
- License : BSD 3-Clause License
Create the scripts
folder in your home and move wololo.bash
to there:
$ mkdir ~/.scripts
$ mv wololo.bash ~/.scripts/.
Now make the command available for your user:
$ echo ". ~/.scripts/wololo.bash" >> ~/.bashrc
$ echo ". ~/.scripts/wololo.bash" >> ~/.bash_profile
To change the repository from Bitbucket to GitHub:
$ wololo -g
Or
$ wololo --github
To change the repository from GitHub to Bitbucket:
$ wololo -b
Or
$ wololo --bitbucket
OBS: The wololo only works in the repository directory.
- Support directory input