I had this problem:
I wanted to pull different repositories with a 'homemade' command in Linux (through an alias).
So, the problem was: I have a repoA, repoB, repoC. With one command I want to pull all of them and I want to print which repos are pulled.
I was close to put a question here but then I found the solution and I wanted to share it with you.
What I did was:
cd
gedit .bashrc
In the bashrc file I added the following alias:
(updaterepos is the command you wish to type to update all the repos and of course you can choose one that you like more)
alias updaterepos='echo Performing a git pull of the following repositories: && echo ---repoA && echo ---repoB && echo ---repoC && echo && cd /pathToRepoA && git pull && cd /pathToRepoB && git pull && cd /pathToRepoC && git pull && cd'
I hope this will help someone with my same problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.