gitlab不同账号间·仓库转移

背景:公司业务调整,原先在海外仓库的代码转移回国内

诉求:完整的保留项目记录

操作:
步骤一: 定位到需要迁移的原项目地址
定位到原项目地址

步骤二:创建新项目
创建新项目

步骤三:打开命令行,创建好文件路径为需要clone的项目名称

➜  dramaly-index md session_lib
➜  dramaly-index cd session_lib
➜  session_lib ls
➜  session_lib git clone --mirror 需要转的仓库地址
Cloning into bare repository 'session_lib.git'...
remote: Enumerating objects: 121, done.
remote: Counting objects: 100% (121/121), done.
remote: Compressing objects: 100% (72/72), done.
remote: Total 270 (delta 64), reused 99 (delta 49)
Receiving objects: 100% (270/270), 85.35 KiB | 455.00 KiB/s, done.
Resolving deltas: 100% (133/133), done.
➜  session_lib ls
session_lib.git
➜  session_lib cd session_lib.git
➜  session_lib.git git:(master) ls
HEAD        config      description hooks       info        objects     packed-refs refs
➜  session_lib.git git:(master) git remote add destination 新创建的仓库地址
➜  session_lib.git git:(master) git push destination --mirror

推送后可能会有下边这种情况发生

➜  session_lib.git git:(master) git push destination --mirror
Enumerating objects: 270, done.
Counting objects: 100% (270/270), done.
Delta compression using up to 8 threads
Compressing objects: 100% (121/121), done.
Writing objects: 100% (270/270), 85.34 KiB | 85.34 MiB/s, done.
Total 270 (delta 133), reused 270 (delta 133), pack-reused 0
remote: Resolving deltas: 100% (133/133), done.
To https://git.didi-inc.com:8021/dramaly-service/session_lib.git
 * [new branch]      add_interface -> add_interface
 * [new branch]      develop -> develop
 * [new branch]      feature_white_module_list -> feature_white_module_list
 * [new branch]      master -> master
 * [new reference]   refs/merge-requests/1/head -> refs/merge-requests/1/head
 * [new reference]   refs/merge-requests/10/head -> refs/merge-requests/10/head
 * [new reference]   refs/merge-requests/11/head -> refs/merge-requests/11/head
 * [new reference]   refs/merge-requests/12/head -> refs/merge-requests/12/head
 * [new reference]   refs/merge-requests/13/head -> refs/merge-requests/13/head
 * [new reference]   refs/merge-requests/14/head -> refs/merge-requests/14/head
 * [new reference]   refs/merge-requests/15/head -> refs/merge-requests/15/head
 * [new reference]   refs/merge-requests/16/head -> refs/merge-requests/16/head
 * [new reference]   refs/merge-requests/17/head -> refs/merge-requests/17/head
 * [new reference]   refs/merge-requests/18/head -> refs/merge-requests/18/head
 * [new reference]   refs/merge-requests/19/head -> refs/merge-requests/19/head
 * [new reference]   refs/merge-requests/2/head -> refs/merge-requests/2/head
 * [new reference]   refs/merge-requests/20/head -> refs/merge-requests/20/head
 * [new reference]   refs/merge-requests/21/head -> refs/merge-requests/21/head
 * [new reference]   refs/merge-requests/22/head -> refs/merge-requests/22/head
 * [new reference]   refs/merge-requests/23/head -> refs/merge-requests/23/head
 * [new reference]   refs/merge-requests/24/head -> refs/merge-requests/24/head
 * [new reference]   refs/merge-requests/25/head -> refs/merge-requests/25/head
 * [new reference]   refs/merge-requests/26/head -> refs/merge-requests/26/head
 * [new reference]   refs/merge-requests/27/head -> refs/merge-requests/27/head
 * [new reference]   refs/merge-requests/28/head -> refs/merge-requests/28/head
 * [new reference]   refs/merge-requests/29/head -> refs/merge-requests/29/head
 * [new reference]   refs/merge-requests/3/head -> refs/merge-requests/3/head
 * [new reference]   refs/merge-requests/30/head -> refs/merge-requests/30/head
 * [new reference]   refs/merge-requests/31/head -> refs/merge-requests/31/head
 * [new reference]   refs/merge-requests/32/head -> refs/merge-requests/32/head
 * [new reference]   refs/merge-requests/33/head -> refs/merge-requests/33/head
 * [new reference]   refs/merge-requests/34/head -> refs/merge-requests/34/head
 * [new reference]   refs/merge-requests/35/head -> refs/merge-requests/35/head
 * [new reference]   refs/merge-requests/4/head -> refs/merge-requests/4/head
 * [new reference]   refs/merge-requests/5/head -> refs/merge-requests/5/head
 * [new reference]   refs/merge-requests/6/head -> refs/merge-requests/6/head
 * [new reference]   refs/merge-requests/7/head -> refs/merge-requests/7/head
 * [new reference]   refs/merge-requests/8/head -> refs/merge-requests/8/head
 * [new reference]   refs/merge-requests/9/head -> refs/merge-requests/9/head
 * [new tag]         v1.0.0 -> v1.0.0
 * [new tag]         v1.0.1 -> v1.0.1
 * [new tag]         v1.0.2 -> v1.0.2
 * [new tag]         v1.0.3 -> v1.0.3
 * [new tag]         v1.0.4 -> v1.0.4
 ! [remote rejected] refs/keep-around/041f49a3840ef60c69b5802afa39df8204237b5b -> refs/keep-around/041f49a3840ef60c69b5802afa39df8204237b5b (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/056a060d38c36e13eff8e9d663fcc091d77812e3 -> refs/keep-around/056a060d38c36e13eff8e9d663fcc091d77812e3 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/0a1c0ba7778ba10fe3a29ba4d3f047df34e59863 -> refs/keep-around/0a1c0ba7778ba10fe3a29ba4d3f047df34e59863 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/0b22d70c5aa66e1043545fec7e2a644b2f414ec2 -> refs/keep-around/0b22d70c5aa66e1043545fec7e2a644b2f414ec2 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/0f398c895d0ed06c8fb6378a4b972fb7af8c3c18 -> refs/keep-around/0f398c895d0ed06c8fb6378a4b972fb7af8c3c18 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/13e51c044eefd20d41a24c7c770611b5b6fd96e3 -> refs/keep-around/13e51c044eefd20d41a24c7c770611b5b6fd96e3 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/193de930433660e09cbdc549e522687e04556961 -> refs/keep-around/193de930433660e09cbdc549e522687e04556961 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/1a8ea198f3a5e9d087a8edb91c1f210de9904a05 -> refs/keep-around/1a8ea198f3a5e9d087a8edb91c1f210de9904a05 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/1eb3aa2e7e5bd5143ca5b1acb915006cb6261098 -> refs/keep-around/1eb3aa2e7e5bd5143ca5b1acb915006cb6261098 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/20611f497498e2573243408ec6d68035495eecc6 -> refs/keep-around/20611f497498e2573243408ec6d68035495eecc6 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/23b9eb31148361b071b695d911bb828d6788d94a -> refs/keep-around/23b9eb31148361b071b695d911bb828d6788d94a (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/28112e08d221cec46069469c80308e4b5445b8ec -> refs/keep-around/28112e08d221cec46069469c80308e4b5445b8ec (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/2a68173e7bb83792e4018b5b134d7e8263145efb -> refs/keep-around/2a68173e7bb83792e4018b5b134d7e8263145efb (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/3104dec79f427d51ab83f65159cef9827dfeb20d -> refs/keep-around/3104dec79f427d51ab83f65159cef9827dfeb20d (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/32b57c60d9a9b779a54276a2b4f0e84c9fba3319 -> refs/keep-around/32b57c60d9a9b779a54276a2b4f0e84c9fba3319 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/367eda90d77207ca55bc6d4dae9cb97aae1be552 -> refs/keep-around/367eda90d77207ca55bc6d4dae9cb97aae1be552 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/39ea1303a222f507a6b7954091e1a56ffd3544b2 -> refs/keep-around/39ea1303a222f507a6b7954091e1a56ffd3544b2 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/3a075f279e85d0c3951a906fb8df261b4bbda584 -> refs/keep-around/3a075f279e85d0c3951a906fb8df261b4bbda584 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/3b3273b590c416327f7dc82fa0cbcdc073e578d4 -> refs/keep-around/3b3273b590c416327f7dc82fa0cbcdc073e578d4 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/425d9053d90976ee6d4a0023831638ec4ab40287 -> refs/keep-around/425d9053d90976ee6d4a0023831638ec4ab40287 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/4d6374daf49d48be8a87bbf7ea27a82bec93eaee -> refs/keep-around/4d6374daf49d48be8a87bbf7ea27a82bec93eaee (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/4f0f1e9a9911659f1e798a5399cb91cf99d22ba5 -> refs/keep-around/4f0f1e9a9911659f1e798a5399cb91cf99d22ba5 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/508b0d93dfd2e463b1bb80db7d9bc911484622ec -> refs/keep-around/508b0d93dfd2e463b1bb80db7d9bc911484622ec (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/536b720b70eb5c6f37ef5f37f038e5477eb3a9ce -> refs/keep-around/536b720b70eb5c6f37ef5f37f038e5477eb3a9ce (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/567ae1046dc458808606161d1b0f4a97ff2dd13a -> refs/keep-around/567ae1046dc458808606161d1b0f4a97ff2dd13a (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/56d4f927bda0eeb19db63b6479e1aec5f9b306bd -> refs/keep-around/56d4f927bda0eeb19db63b6479e1aec5f9b306bd (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/582e7befcfb31bb448567878ff91cf338d852249 -> refs/keep-around/582e7befcfb31bb448567878ff91cf338d852249 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/5bcaeda067235dc77beee1a730bb58274ec4f2ca -> refs/keep-around/5bcaeda067235dc77beee1a730bb58274ec4f2ca (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/5eea3450627f59cb79bb022e943a047fa0286ca2 -> refs/keep-around/5eea3450627f59cb79bb022e943a047fa0286ca2 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/662c99affa5f659a9b890b9f7e7a34ee67360698 -> refs/keep-around/662c99affa5f659a9b890b9f7e7a34ee67360698 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/6722bdc727a9ade979036f227fcedb4ace2e6809 -> refs/keep-around/6722bdc727a9ade979036f227fcedb4ace2e6809 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/6aaea72859e9c06fa1b977c7c813298ae249b507 -> refs/keep-around/6aaea72859e9c06fa1b977c7c813298ae249b507 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/74236a35fbd7a3a0938b868b029d0e0350cf20e0 -> refs/keep-around/74236a35fbd7a3a0938b868b029d0e0350cf20e0 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/78e41414794553587a693ce41732b60ec7bd101a -> refs/keep-around/78e41414794553587a693ce41732b60ec7bd101a (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/811493b6fdae2331b0a94c7a3fe65a3000f0e92b -> refs/keep-around/811493b6fdae2331b0a94c7a3fe65a3000f0e92b (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/8c3d3377714fdea5468e7648c25c625da517e501 -> refs/keep-around/8c3d3377714fdea5468e7648c25c625da517e501 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/8d3c1963907df786b2e9556719cdf801e25d30dd -> refs/keep-around/8d3c1963907df786b2e9556719cdf801e25d30dd (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/8d71603be6dcc20892aea7dde55e2ca37437e1ec -> refs/keep-around/8d71603be6dcc20892aea7dde55e2ca37437e1ec (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/914f1ff0b0c68e5ccc43bfb16db243c759595a2e -> refs/keep-around/914f1ff0b0c68e5ccc43bfb16db243c759595a2e (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/93b4bc0091ef258c9b33599aea53006f366bf30b -> refs/keep-around/93b4bc0091ef258c9b33599aea53006f366bf30b (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/9498146addd947d1e608f0b9faf3542ec53b91b6 -> refs/keep-around/9498146addd947d1e608f0b9faf3542ec53b91b6 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/970ae217af3abd8d36cdf4bfb3071a7abbb7ac92 -> refs/keep-around/970ae217af3abd8d36cdf4bfb3071a7abbb7ac92 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/9c9a233f6e8d84cfabfdf70aade2023bb9800a11 -> refs/keep-around/9c9a233f6e8d84cfabfdf70aade2023bb9800a11 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/9f1e8e26d1cd71db84263e862614ea2f5e9edc22 -> refs/keep-around/9f1e8e26d1cd71db84263e862614ea2f5e9edc22 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/9f2381b9af9372c00fb6c93974da0d5fb8ebb624 -> refs/keep-around/9f2381b9af9372c00fb6c93974da0d5fb8ebb624 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/9f896a51a232fdfb093ae4969b75f11e84feceb9 -> refs/keep-around/9f896a51a232fdfb093ae4969b75f11e84feceb9 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/9fa29a3034709ec648b65fc948babf5e790ecc91 -> refs/keep-around/9fa29a3034709ec648b65fc948babf5e790ecc91 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/a7e126fea8ac8df616ff358a920d120f8b58d2ba -> refs/keep-around/a7e126fea8ac8df616ff358a920d120f8b58d2ba (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/aac4449bb0a4d725ef2b5d9cad474ec60b5c5a07 -> refs/keep-around/aac4449bb0a4d725ef2b5d9cad474ec60b5c5a07 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/ad52addc4c5aaf0a2cdfb635163f9be459cc50de -> refs/keep-around/ad52addc4c5aaf0a2cdfb635163f9be459cc50de (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/b5b7e3a55c30ce05147f70327a2a6d9f3f7991db -> refs/keep-around/b5b7e3a55c30ce05147f70327a2a6d9f3f7991db (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/bba593e5e3c21bc47e377c929a2be29dc69be561 -> refs/keep-around/bba593e5e3c21bc47e377c929a2be29dc69be561 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/be7060e325ad95964cf0bcdd2ec00fbae6eb744a -> refs/keep-around/be7060e325ad95964cf0bcdd2ec00fbae6eb744a (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/c2ecc8a2867245c3ddce1bf56688eb209a641b0c -> refs/keep-around/c2ecc8a2867245c3ddce1bf56688eb209a641b0c (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/ca6b8628b5afde052fe8c05306dc24312507cfd1 -> refs/keep-around/ca6b8628b5afde052fe8c05306dc24312507cfd1 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/ccf49dc5df928ff11e3880a1904647e2fd463a1f -> refs/keep-around/ccf49dc5df928ff11e3880a1904647e2fd463a1f (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/d704a5eb01adcad70703badba4e90d4a7ac5fc7d -> refs/keep-around/d704a5eb01adcad70703badba4e90d4a7ac5fc7d (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/d788d4d14f94860cb0c22c7716e9f67a237c1d3e -> refs/keep-around/d788d4d14f94860cb0c22c7716e9f67a237c1d3e (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/da94e135b048bbd2691429a5502823e1305fb068 -> refs/keep-around/da94e135b048bbd2691429a5502823e1305fb068 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/db06c6846108682303e41237c8410debf5c046e6 -> refs/keep-around/db06c6846108682303e41237c8410debf5c046e6 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/e07a5c369fa3ae47460ead06cc25a317308dd25e -> refs/keep-around/e07a5c369fa3ae47460ead06cc25a317308dd25e (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/e20a2e69aaa400073b5c9337fc20d3bd807f2180 -> refs/keep-around/e20a2e69aaa400073b5c9337fc20d3bd807f2180 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/e3c2cdd97753559daf33077f4cd68b0e7b6a81fb -> refs/keep-around/e3c2cdd97753559daf33077f4cd68b0e7b6a81fb (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/e93ad43217271910c21ab17506fb6114f6590149 -> refs/keep-around/e93ad43217271910c21ab17506fb6114f6590149 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/eac96d30e74cc57490c13bed8a486c321d25575d -> refs/keep-around/eac96d30e74cc57490c13bed8a486c321d25575d (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/eee415278c6e8056dbcda6042812e46f6ef2464e -> refs/keep-around/eee415278c6e8056dbcda6042812e46f6ef2464e (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/f44321a6ca18a6da0d47d47d5d0e1c857d12aaea -> refs/keep-around/f44321a6ca18a6da0d47d47d5d0e1c857d12aaea (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/f652fc4e7c8f492ce1f852bcd31739c42ea11925 -> refs/keep-around/f652fc4e7c8f492ce1f852bcd31739c42ea11925 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/fb8625be9e1ccc7ddab1ae839bf0f4e5bbaf920d -> refs/keep-around/fb8625be9e1ccc7ddab1ae839bf0f4e5bbaf920d (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/fc5b903264dcb7f7ba31ab7337083d0097bffc93 -> refs/keep-around/fc5b903264dcb7f7ba31ab7337083d0097bffc93 (deny updating a hidden ref)
 ! [remote rejected] refs/keep-around/fce696b22934c3af04ca3dfea9eefc01de20a537 -> refs/keep-around/fce696b22934c3af04ca3dfea9eefc01de20a537 (deny updating a hidden ref)
error: failed to push some refs to 'https://git.didi-inc.com:8021/dramaly-service/session_lib.git'
➜   session_lib.git git:(master)

PS: 那些被远程拒绝的是git的隐藏refs,gitLab用来保存某些临时状态或历史记录的内部引用。当批量推到新的仓库这些东西就不需要了。是gitlab的默认操作。

重要:此时刷新仓库后注意观察文件大小,以及分支个数是否正确。分支可能不相等,因为原先追踪有失败的。大小也会发生变化(皆为正常现象)

步骤三:刷新新仓库前 VS 刷新仓库后
刷新仓库前

刷新仓库后
原仓库快照:
在这里插入图片描述
新仓库快照
在这里插入图片描述

到此:大功告成

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/900032.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

软件工程中的建造者模式:用于构建复杂对象

在软件工程中,我们经常会遇到需要构建复杂对象的场景。这些对象可能包含多个组件,而这些组件的创建过程可能相当繁琐。为了解决这个问题,设计模式提供了一种优雅的方法,这就是建造者模式(Builder Pattern)。…

HTTP之响应消息Response

个人简介:Java领域新星创作者;阿里云技术博主、星级博主、专家博主;正在Java学习的路上摸爬滚打,记录学习的过程~ 个人主页:.29.的博客 学习社区:进去逛一逛~ HTTP之响应消息Response 1 Response 组成2 状态…

基于SpringBoot+Vue+MySQL的实践性教学系统

系统展示 用户前台界面 后台界面 系统背景 随着信息技术的快速发展,企业对于高效、智能的管理系统需求日益迫切。传统的管理系统大多采用单机版或C/S架构,存在操作复杂、维护困难、数据共享性差等问题。而基于SpringBootVueMySQL的全栈管理系统&#xff…

通信协议——UART

目录 基础概念串行&并行串行的优缺点 单工&双工 UART基本概念时序图思考:接收方如何确定01和0011 基础概念 串行&并行 串行为8车道,并行为1车道 串行的优缺点 通行速度快浪费资源布线复杂线与线之间存在干扰 单工&双工 单工&#xf…

018集——c# 实现CAD添加侧栏菜单(WPF控件)(CAD—C#二次开发入门)

本例实现的效果如下&#xff1a; 第一步&#xff1a;添加引用 using UserControl System.Windows.Controls.UserControl; using System.Windows.Forms.Integration;//PaletteSet integration 第二步 <UserControl x:Class"AcTools.UserControl1"xmlns"htt…

【数据分析】Power BI的使用教程

目录 1 Power BI架构1.1 Power BI Desktop1.2 Power BI服务1.3 Power BI移动版 2 Power Query2.1 Power Query编辑器2.2 Power Query的优点2.3 获取数据2.4 数据清洗的常用操作2.4.1 提升标题2.4.2 更改数据类型2.4.3 删除错误/空值2.4.4 删除重复项2.4.5 填充2.4.6 合并列2.4.…

【Airtest】 UI 自动化

一、环境配置 项目名称&#xff1a;Yavin 锁定python3.7.x和opencv-contrib-python3.4.2.17&#xff0c;不然各种报错 参考airtest官网https://airtest.doc.io.netease.com/ 虚拟环境配置 安装所需要的依赖包 二、框架使用方式 1.目录结构介绍 2.config文件config.yaml文…

前端开发设计模式——状态模式

目录 一、状态模式的定义和特点 二、状态模式的结构与原理 1.结构&#xff1a; 2.原理&#xff1a; 三、状态模式的实现方式 四、状态模式的使用场景 1.按钮的不同状态&#xff1a; 2.页面加载状态&#xff1a; 3.用户登录状态&#xff1a; 五、状态模式的优点 1.提…

【深度学习基础】详解Pytorch搭建CNN卷积神经网络实现手写数字识别

MNIST 数据集,其包含70000 个2828 的手写数字的数据集,其中又分为60000 个训练样本与10000 个测试样本。 安装实验用到的包 anaconda promt 安装python包, 首先在开始界面打开prompt 进入到相应的虚拟环境中,下面的python38你自己创建的虚拟环境名称。 # 激活虚拟环境,v…

Ubuntu 24.04 系统上配置 Node.js 运行环境

本文我们重点介绍两种安装 Node.js 的方法。第一种方法使用 NVM (Node VersionManager)&#xff0c;这是安装和管理多个 Node.js 版本的最好和最快的方法。第二种方法使用官方包存储库在 Ubuntu 上安装 Node.js&#xff0c;一次只允许安装一个版本。 必备条件 A running Ubun…

yarn的安装与使用以及与npm的区别(安装过程中可能会遇到的问题)

一、yarn的安装 使用npm就可以进行安装 但是需要注意的一点是yarn的使用和node版本是有关系的必须是16.0以上的版本。 输入以下代码就可以实现yarn的安装 npm install -g yarn 再通过版本号的检查来确定&#xff0c;yarn是否安装成功 yarn -v二、遇到的问题 1、问题描述…

特斯拉Optimus:展望智能生活新篇章

近日&#xff0c;特斯拉举办了 "WE ROBOT" 发布会&#xff0c;发布会上描绘的未来社会愿景&#xff0c;让无数人为之向往。在这场吸引全球无数媒体的直播中&#xff0c;特斯拉 Optimus 人形机器人一出场就吸引了所有观众的关注。从多家媒体现场拍摄的视频可以看出来&…

Ubuntu 上安装 Redmine 5.1 指南

文章目录 官网安装文档&#xff1a;命令步骤相关介绍GemRubyRailsBundler 安装 Redmine更新系统包列表和软件包&#xff1a;安装必要的依赖&#xff1a;安装 Ruby&#xff1a;安装 bundler下载 Redmine 源代码&#xff1a;安装 MySQL配置 Redmine 的数据库配置文件&#xff1a;…

Java 基于 poi 和 itextpdf 实现 excel 转 pdf

目录 问题 实现思路 pom Excel2PDFUtil Excel2PDFUtilTest 输出结果 问题 工作中遇到一个需求&#xff0c;需要实现 excel 文件的预览&#xff0c;实现的思路就是将 excel 转成 pdf 文件&#xff0c;上传到文件服务器上得到文件地址&#xff0c;预览时只需要返回 pdf 预…

Uni-App-02

条件编译 条件编译概念 不同的运行平台终归有些专有的特性&#xff0c;无法实现跨平台完全兼容&#xff0c;例如&#xff1a;微信小程序导航栏右上角的关闭图标。 uni-app提供了一种“条件编译”机制&#xff0c;可以针对特定的平台编译执行特定的代码&#xff0c;否则不执行。…

[JAVAEE] 线程安全的案例(一)-单例模式

目录 一. 单例模式 二. 单例模式的使用时机 三. 单例模式的关键代码 四. 单例模式的几种实现方式 4.1 饿汉方式(急) 4.2 懒汉模式(缓) a. 解决原子性的问题 b. 解决程序运行效率低下的问题 c. 解决指令重排序的问题(其次是为了解决内存可见性的问题) 五. 总结 一. …

【大模型实战篇】大模型分词算法BPE(Byte-Pair Encoding tokenization)及代码示例

词元化是针对自然语言处理任务的数据预处理中一个重要步骤&#xff0c;目的是将原始文本切分成模型可以识别和处理的词元序列。在大模型训练任务中&#xff0c;就是作为大模型的输入。传统的自然语言处理方法&#xff0c;如基于条件随机场的序列标注&#xff0c;主要采用基于词…

Nest.js 实战 (十五):前后端分离项目部署的最佳实践

☘️ 前言 本项目是一个采用现代前端框架 Vue3 与后端 Node.js 框架 Nest.js 实现的前后端分离架构的应用。Vue3 提供了高性能的前端组件化解决方案&#xff0c;而 Nest.js 则利用 TypeScript 带来的类型安全和模块化优势构建了一个健壮的服务端应用。通过这种技术栈组合&…

phpstorm中使用FTP功能和自动上传配置介绍

phpstorm中使用FTP功能和自动上传配置介绍 一、引言 PHPStorm 是一款强大的 PHP IDE&#xff0c;它提供了许多便捷的功能来提高开发效率。其中&#xff0c;内置的 FTP 功能允许开发者直接在 IDE 中上传文件到服务器&#xff0c;而自动上传配置则可以进一步简化这一过程。本文…

ISUP协议视频平台EasyCVR私有化视频平台视频汇聚/存储系统怎么选?

一、EasyCVR视频监控存储系统的核心优势 TSINGSEE青犀EasyCVR视频汇聚平台是一个具备高度集成化、智能化的视频监控汇聚管理平台&#xff0c;拥有远程视频监控、录像、存储、回放、语音对讲、云台控制、告警等多项核心功能。该系统采用先进的网络传输技术&#xff0c;支持高清…