简体   繁体   中英

How to get list of all git remotes present on my machine?

I have multiple apps configures on heroku and GitHub.

When I added heroku remotes, I used these aliases:

app1

app1-staging

app2

app2-staging

... etc.

Now, one of the remote staging name was somehow misspelled and I closed the terminal window.

Is there a way to list/find all heroku remotes I have configured on my system?

I tried heroku apps and it gives me apps name but not the remote names.我尝试了heroku apps ,它给了我应用程序名称,但没有给出远程名称。

" git remote " modifies the local config of a repository, ie the config file under the .git directory of a repo.

That means there is no "central place" where to query all your repo: you need to:

  • search for all .git directory on your local machine or your heroku instance, and
  • do a git remote -v in each one to see the remotes defined.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM