•Overview • Usage • Coming Soon•
This is just a shell script I use to do git pull on all the cloned repositories that I have. It's a pretty lazy idea but I just like to automate the simple things.
First you need to clone the repository into your machine:
$ git clone https://github.com/i-am-jezz/git-puller-for-lazy-people.git
$ cd git-puller-for-lazy-people/
$ chmod +x git_pull_script
$ ./git_pull_script git_repos.txt
To create the file containing path to git repositories:
$ find / -name .git 2>/dev/null | tee git_repos.txt
This command will create the file git_repos.txt which contains the path to all the github repositories in your system. If you don't want to pull a specific repository remove it's path from the git_folders.txt file.
NOTE:The git_repos.txt file will contain the path to the files with .git at the end. You will need to remove the extension. This can be done easily by doing a find & replace on the text file.
I'm working on a script to load the the git_repos.txt file automatically.