Think before you speak, read before you think.

git push 多个 remote

by

in

如果都是 master 的话

git remote | xargs -n 1 git push

同一个 remote 有多个 push url, git push origin branch_name

[remote "origin"]
	url = git@github.com:jpuyy/terraform-gke.git
	fetch = +refs/heads/*:refs/remotes/origin/*
	pushurl = git@github.com:jpuyy/terraform-gke.git
	pushurl = https://self-managed-git.com/common/terraform-gke.git

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *