go get -u all
go get -u
go mod update
go get -u full_package_name
go get -u github.com/... // ('...' being the wildcard).
go get -u github.com/orgA/...
go get -d
go get -u ./..
git config --global core.symlinks false
git config core.symlinks false
然并卵
find . -name .git -print -execdir git pull ; find . -name .git -print -execdir git fetch --progress -v "origin" ; find . -name .git -print -execdir git fetch --all ; find . -name .git -print -execdir git submodule update --init --recursive ; find . -name .svn -print -execdir svn update ; find . -name .hg -print -execdir hg pull -u ;
bash find . -type d -name .git -exec git --git-dir={} --work-tree=$PWD/{}/.. pull origin master ; PowerShell Get-ChildItem -Recurse -Directory -Hidden -Filter .git | ForEach-Object { & git --git-dir="$($_.FullName)" --work-tree="$(Split-Path $_.FullName -Parent)" pull origin master } ls | parallel -I{} -j100 ' if [ -d {}/.git ]; then echo Pulling {} git -C {} pull > /dev/null && echo "pulled" || echo "error :(" else echo {} is not a .git directory fi ' git reset --hard HEAD git clean -f -d git pull git fetch --all git reset --hard origin/master git reset --hard HEAD git clean -f -d git pull 1 #!/bin/bash git fetch --all for branch in `git branch -r --format="%(refname:short)" | sed 's/origin///'` do git branch -f --track "$branch" "origin/$branch" done 2 git fetch --all; for branch in `git branch -r --format="%(refname:short)" | sed 's/origin///'`; do git branch --track "$branch" "origin/$branch" ; done ; find . -name ".git" -type d | sed 's//.git//' | xargs -P10 -I{} git -C {} pull find . -name .git -print -execdir git pull ; find . -name .git -print -execdir git submodule update --init --recursive ; find . -name .svn -print -execdir svn update ; #!/bin/sh for dir in $(ls -d */) do cd $dir echo "into $dir" if [ -d ".svn" ]; then svn update elif [ -d ".hg" ]; then hg pull -u elif [ -d ".git" ]; then git submodule update --init --recursive git fetch --progress -v "origin" git fetch --all fi cd .. done find . -name .git -print -execdir sh ~/1.sh ;