go get 升级所有
2024-08-29 21:21:01
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 #!/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 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 ~/.sh \;
最新文章
- 关于ExtJS、JQuery UI和easy UI的选择问题
- MongoDB安装(一)
- 转:copy initialization
- HDU 3605
- poj 3463 Sightseeing( 最短路与次短路)
- 在Visual Studio 2010中使用DSL Tool特定领域开发 开篇
- Codeforces Round #320 (Div. 1) [Bayan Thanks-Round] C. Weakness and Poorness 三分 dp
- php验证身份证号码正确性
- Oracle技术整理(转载)
- Scala入门系列(五):面向对象之类
- 大数据和Hadoop时代的维度建模和Kimball数据集市
- spring mvc返回json格式和json字符串
- echarts设置toolTip大小和样式问题
- 在RAC执行相关操作发生ora-01031:insufficient privileges解决方法
- git revert回退时提示One or more files are in a conflicted state
- leetcode 罗马数字转整数
- rails 网站跨域
- centos7使用frabric自动化部署LNMP
- IOS 浅谈闭包block的使用
- apache poi合并单元格设置边框
热门文章
- kuangbin带你飞 - 合集
- 使用you-get下载网页小视频(实际上你可以下载任意你想要的web网页中的内容)
- android摄像头获取图像——第一弹
- 洛谷P3857 [TJOI2008]彩灯(线性基)
- C#邮包计费
- 远程kafka通信实例,各种bug解决----虚拟机+本地电脑
- ZOJ 4019 Schrödinger's Knapsack (from The 18th Zhejiang University Programming Contest Sponsored by TuSimple)
- springMVC 类型转换
- 应用日志获取-web系统
- BZOJ1415(期望dp)