Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git push to all remotes

#To push all branches to all remotes:
git remote | xargs -L1 git push --all

#Or if you want to push a specific branch to all remotes:
#Replace master with the branch you want to push.
git remote | xargs -L1 -I R git push R master

#(Bonus) To make a git alias for the command:
git config --global alias.pushall '!git remote | xargs -L1 git push --all'
Comment

PREVIOUS NEXT
Code Example
Shell :: check active cron jobs linux 
Shell :: install readline-sync 
Shell :: yandex browser not playing videos 
Shell :: ip command not found 
Shell :: check if mongodb is running mac 
Shell :: github desktop for linux 
Shell :: linux install fzf 
Shell :: aws cli create bucket command 
Shell :: bash filter environment variable results 
Shell :: ssh github generate key 
Shell :: sudoers nopasswd 
Shell :: youtube to mp4 linux 
Shell :: python2 pip install 
Shell :: stop apache service 
Shell :: git init repo 
Shell :: apache config directory 
Shell :: arch ocamlfuse 
Shell :: install angular cdk 
Shell :: github wiki link to another page 
Shell :: install angular 
Shell :: instal .deb ubuntu 
Shell :: service account credentials gcp token 
Shell :: change wsl to version 1 
Shell :: install serverless 
Shell :: how to check git changes before commit 
Shell :: Linux command line search and replace string 
Shell :: hardhat smart contract compile command 
Shell :: mongodb view users 
Shell :: how to self delete a batch file 
Shell :: read password bash 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =