• go get 升级所有


    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 ;
  • 相关阅读:
    tophat安装
    glimmer 3.02安装小记
    Augustus安装小记
    推荐几个手机网站在线预览测试工具
    软件分辨率兼容性测试
    谈谈软件兼容性测试
    网页兼容性测试(工具使用IETESTER、Firefox、360安全浏览器)
    12款很棒的浏览器兼容性测试工具推荐
    测试用例设计——如何提高测试覆盖率
    软件测试报告写作实战案例
  • 原文地址:https://www.cnblogs.com/marklove/p/10925227.html
Copyright © 2020-2023  润新知