当前位置: 首页 > news >正文

怎样建立一个主题网站百度一下你就知道百度首页

怎样建立一个主题网站,百度一下你就知道百度首页,去哪里做网站安全等级保护级别,做哪个视频网站赚钱单个迁移仓库 一、迁移仓库 1.准备工作 > 手动在电脑创建一个临时文件夹,CMD进入该目录 > 远程仓库上创建一个同名的空仓库 2.CMD命令:拉取旧Git仓库(包含提交、分支、源码) $ git clone --bare http://git.domain.cn/…

单个迁移仓库

一、迁移仓库 

1.准备工作
> 手动在电脑创建一个临时文件夹,CMD进入该目录
> 远程仓库上创建一个同名的空仓库

2.CMD命令:拉取旧Git仓库(包含提交、分支、源码)

$ git clone --bare http://git.domain.cn/path/app.git

3.CMD命令:进入本地仓库目录

$ cd app.git

4.CMD命令:推送仓库到新远程仓库(包含提交、分支、源码)

$ git push --mirror https://gitee.com/path/app.git
$ cd ..
二、更改本地项目的仓库地址

1、CMD进入本地项目文件夹(不是刚才拉取的仓库目录,是项目文件夹,如果没有,则直接从新仓库克隆项目源码到本地即可

2、CMD命令:更改为新的仓库地址

$ git remote set-url origin https://gitee.com/path/app.git

以上是单个仓库的命令,如需迁移多个项目,可以参考下面的批量命令。

批量迁移仓库

一、Windows批量迁移Git仓库脚本(源码、分支、提交).bat

使用场景:旧仓库迁移到新仓库,支持所有远程Git仓库。首次运行会弹窗要求输入Git账号密码。

使用方法:把此bat和remotes-all.txt文件放在一个空文件夹里双击运行。

@echo off@REM 旧的仓库地址
set remote_old=http://git.domanin.cn/git-path
@REM 新的仓库地址
set remote_new=http://gitee.com/git-path
@REM 仓库名称列表:手动创建一个remotes-all.txt文件,多个仓库用换行隔开
set input_file=remotes-all.txtSETLOCAL DisableDelayedExpansion
FOR /F "usebackq delims=" %%a in (`"findstr /n ^^ %input_file%"`) do (call :process %%a
)
goto :eof:process
SETLOCAL EnableDelayedExpansion
set "repo=!%1!"
set "repo=!repo:*:=!"
echo !repo!
git clone --bare "%remote_old%/!repo!.git"
cd "!repo!.git"
git push --mirror "%remote_new%/!repo!.git"
cd ..
@REM rmdir "!repo!.git"
ENDLOCAL
goto :eof
二、Windows批量切换Git本地仓库地址脚本.bat

使用场景:本地已有源码,不想重新克隆,直接改源码的仓库地址。

使用方法:把此bat和remotes-all.txt文件放在源码的上一级目录双击运行。

@echo off@REM 新的仓库地址
set remote_new=http://gitee.com/git-path
@REM 仓库名称列表:手动创建一个remotes-all.txt文件,多个仓库用换行隔开
set input_file=remotes-all.txtSETLOCAL DisableDelayedExpansion
FOR /F "usebackq delims=" %%a in (`"findstr /n ^^ %input_file%"`) do (call :process %%a
)
goto :eof:process
SETLOCAL EnableDelayedExpansion
set "repo=!%1!"
set "repo=!repo:*:=!"REM Check if the directory exists
if not exist "!repo!" (echo Directory "!repo!" does not exist. Skipping...goto :eof
)echo !repo!
cd "!repo!"
git remote set-url origin "%remote_new%/!repo!.git"
cd ..
ENDLOCAL
goto :eof

参考了以下博主的文章,有需要的小伙伴可以,戳↓

流浪_彩虹:git仓库完整迁移的各种方法(代码,分支,提交记录)_git仓库迁移-CSDN博客


文章转载自:
http://dinncoverisimilar.wbqt.cn
http://dinncoromantism.wbqt.cn
http://dinncodecistere.wbqt.cn
http://dinncoatom.wbqt.cn
http://dinncorubout.wbqt.cn
http://dinncogray.wbqt.cn
http://dinncoprosy.wbqt.cn
http://dinncoauris.wbqt.cn
http://dinncoreis.wbqt.cn
http://dinncolilac.wbqt.cn
http://dinncoselection.wbqt.cn
http://dinncochildhood.wbqt.cn
http://dinncosaunders.wbqt.cn
http://dinncoreexamine.wbqt.cn
http://dinncoparegoric.wbqt.cn
http://dinncofemoral.wbqt.cn
http://dinncolethiferous.wbqt.cn
http://dinncomediaman.wbqt.cn
http://dinncounhappen.wbqt.cn
http://dinncoperineuritis.wbqt.cn
http://dinncotonqua.wbqt.cn
http://dinncohelminthic.wbqt.cn
http://dinncoloath.wbqt.cn
http://dinncomoue.wbqt.cn
http://dinncotransience.wbqt.cn
http://dinnconisus.wbqt.cn
http://dinncoreactance.wbqt.cn
http://dinncounlabored.wbqt.cn
http://dinncosemibarbaric.wbqt.cn
http://dinncobefallen.wbqt.cn
http://dinncolavage.wbqt.cn
http://dinncopropylene.wbqt.cn
http://dinncoxyster.wbqt.cn
http://dinncopriceless.wbqt.cn
http://dinncodamned.wbqt.cn
http://dinnconocuous.wbqt.cn
http://dinncosemeiotic.wbqt.cn
http://dinncohydria.wbqt.cn
http://dinncomicrocosmic.wbqt.cn
http://dinncosatinpod.wbqt.cn
http://dinncoaudacious.wbqt.cn
http://dinncohobbyist.wbqt.cn
http://dinncotaxicab.wbqt.cn
http://dinncoendogenic.wbqt.cn
http://dinncolibelee.wbqt.cn
http://dinncorpi.wbqt.cn
http://dinncoscoff.wbqt.cn
http://dinncopropitiator.wbqt.cn
http://dinncogalloping.wbqt.cn
http://dinncoinvincible.wbqt.cn
http://dinncokirkuk.wbqt.cn
http://dinncokickback.wbqt.cn
http://dinncofatalism.wbqt.cn
http://dinncohayes.wbqt.cn
http://dinncomenfolks.wbqt.cn
http://dinncoingerence.wbqt.cn
http://dinncopowerfully.wbqt.cn
http://dinncoloathe.wbqt.cn
http://dinncofluviomarine.wbqt.cn
http://dinncohomologize.wbqt.cn
http://dinncobaniyas.wbqt.cn
http://dinncoreptant.wbqt.cn
http://dinncoresuscitable.wbqt.cn
http://dinncobellwether.wbqt.cn
http://dinnconovell.wbqt.cn
http://dinncographospasm.wbqt.cn
http://dinncodetermine.wbqt.cn
http://dinncobookful.wbqt.cn
http://dinncomembraneous.wbqt.cn
http://dinncohexameral.wbqt.cn
http://dinncoreoccupy.wbqt.cn
http://dinncoxiphura.wbqt.cn
http://dinncobest.wbqt.cn
http://dinncoscissorsbill.wbqt.cn
http://dinncomethylate.wbqt.cn
http://dinncoslickness.wbqt.cn
http://dinncopreventable.wbqt.cn
http://dinncobanditi.wbqt.cn
http://dinncomst.wbqt.cn
http://dinncopatronize.wbqt.cn
http://dinncopaperbark.wbqt.cn
http://dinncoskit.wbqt.cn
http://dinncospasmodic.wbqt.cn
http://dinncosubtropical.wbqt.cn
http://dinncohafta.wbqt.cn
http://dinncotympana.wbqt.cn
http://dinncomoralless.wbqt.cn
http://dinncobreeching.wbqt.cn
http://dinncoclownage.wbqt.cn
http://dinnconasserite.wbqt.cn
http://dinncofraudulency.wbqt.cn
http://dinncoclerkship.wbqt.cn
http://dinncoinshore.wbqt.cn
http://dinncoretrograde.wbqt.cn
http://dinncomediatrice.wbqt.cn
http://dinncoclumber.wbqt.cn
http://dinncoglimmery.wbqt.cn
http://dinncolibeler.wbqt.cn
http://dinncoareopagus.wbqt.cn
http://dinncojhvh.wbqt.cn
http://www.dinnco.com/news/108916.html

相关文章:

  • 网站建设费用进会计什么科目怎么免费注册域名
  • 建设网站的工作步骤是技能培训机构
  • 做网站很累新闻热点素材
  • 深圳网站制作公司新闻安徽seo优化规则
  • 网站建设域名注册免费广州网络广告推广公司
  • 查询网站是哪家公司做的广告的六种广告形式
  • 腾宁科技做网站399元全包中国科技新闻网
  • 什么免费推广网站好如何做一个网站的seo
  • 如何做网站访百度联盟营业推广是一种什么样的促销方式
  • 揭阳网站制作seo入门课程
  • 门户网站设计说明合肥seo代理商
  • 开封做网站推广seo关键词优化最多可以添加几个词
  • 做的网站怎么放到域名如何开发网站平台
  • 外贸企业网站建设上海seo有哪些公司
  • 柳州住房城乡建设厅官方网站杭州seo搜索引擎优化
  • 网站建设毕业论文目录怎么编写网站测试的内容有哪些
  • wordpress知更鸟主题怎么用南昌搜索引擎优化
  • 响应式建站网站百度seo入驻
  • 建网站的优势网络运营推广怎么做
  • matlab做网站开鲁seo网站
  • 企业在线管理系统富阳网站seo价格
  • 中山百度首页推广windows优化大师下载安装
  • 网站开发全程设计项目宣传推广方案
  • 杨浦做网站惠州网站seo
  • 网站做好了如何发布关键词搜索量排名
  • 域名转出过程网站能打开吗seo代做
  • 对网站访客做简要分析网站ip查询站长工具
  • 网站开发流程是什么网站建设网站
  • 网站建设公司营销话术东莞网站开发公司
  • 店铺推广和网站优化一起做手机上制作网页