Skip to content

Commit 0dbc4b8

Browse files
salvorapiSalvo Rapisarda
andauthored
add new command (#217)
Co-authored-by: Salvo Rapisarda <sd.rapisarda@innonation.it>
1 parent a3bc5fc commit 0dbc4b8

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
178178
* [Use SSH instead of HTTPs for remotes](#use-ssh-instead-of-https-for-remotes)
179179
* [Update a submodule to the latest commit](#update-a-submodule-to-the-latest-commit)
180180
* [Prevent auto replacing LF with CRLF](#prevent-auto-replacing-lf-with-crlf)
181+
* [Refresh the list of remote branches](#refresh-the-list-of-remote-branches)
181182

182183
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
183184
<!-- @doxie.inject end toc -->
@@ -999,6 +1000,7 @@ __Alternatives:__
9991000
git branch <branch-name> && git checkout <branch-name>
10001001
```
10011002

1003+
10021004
```sh
10031005
git switch -c <branch-name>
10041006
```
@@ -1264,5 +1266,10 @@ git commit -m "submodule updated"
12641266
git config --global core.autocrlf false
12651267
```
12661268
1269+
## Refresh the list of remote branches
1270+
```sh
1271+
git remote update origin --prune
1272+
```
1273+
12671274
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
12681275
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,5 +531,8 @@
531531
}, {
532532
"title": "Prevent auto replacing LF with CRLF",
533533
"tip": "git config --global core.autocrlf false"
534+
}, {
535+
"title": "Refresh the list of remote branches",
536+
"tip": "git remote update origin --prune"
534537
}
535538
]

0 commit comments

Comments
 (0)