Skip to content

Instantly share code, notes, and snippets.

@pc-star
pc-star / git-pull-all-branches.txt
Created September 7, 2021 13:01 — forked from omkz/git-pull-all-branches.txt
git pull all branches from remote repository
the main command is:
```
for branch in `git branch -r | cut -d '/' -f2` ; do git checkout $branch && git pull origin $branch ; done
```
check branch yang sudah ada:
```
git branch -a
```