Are you tired of manually sorting your Git repositories into different folders? Say no more! RepoSorter is here to help you sort all your Git repositories with just one command.
Using RepoSorter is as easy as pie! Simply pass the directory path containing your Git repositories as a command line argument:
RepoSorter
will scan the directory passed as an argument to find all the Git repositories.- It will then check if the repository is hosted on
GitHub
orGitLab
. - If it's a
GitHub
repository, it will be moved to~/Desktop/git_projects/github_repos
. - If it's a
GitLab
repository, it will be moved to~/Desktop/git_projects/gitlab_repos
.
- Git must be installed on your system
- Bash must be installed on your system
- Clone this repository to your local machine
- Navigate to the cloned directory in your terminal
- Make the
RepoSorter.sh
file executable by running the following command:chmod +x RepoSorter.sh
- Run the script with the directory path as a command line argument, e.g.
./RepoSorter.sh ~/Desktop/git_directories
./RepoSorter.sh ~/Desktop/git_projects/ ~/Desktop/git_projects/
./RepoSorter.sh <src-dir> <dest-dir>
By the end of this script, all your Git repositories will be neatly sorted into the appropriate folders, saving you time and effort.
With RepoSorter, you can now focus on coding instead of manually sorting your Git repositories. Give it a try and let us know what you think! 🚀💻
I welcome any contributions to improve RepoSorter. If you have an idea or a bug to report, feel free to open an issue or a pull request.