File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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:__
9991000git branch < branch-name> && git checkout < branch-name>
10001001```
10011002
1003+
10021004``` sh
10031005git switch -c < branch-name>
10041006```
@@ -1264,5 +1266,10 @@ git commit -m "submodule updated"
12641266git 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 -->
Original file line number Diff line number Diff line change 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]
You can’t perform that action at this time.
0 commit comments