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

郴州做网站公司在线科技成都网站推广公司

郴州做网站公司,在线科技成都网站推广公司,深圳最好的网站建设公司,北京b2c网站建设文章目录 1、git init1.1、在当前目录中显示隐藏文件:1.2、查看已有的远程仓库1.3、确保你的本地机器已经生成了 SSH 密钥:1.4、将生成的公钥文件(通常位于 ~/.ssh/id_rsa.pub)复制到 GitLab 的 SSH 设置中:1.5、测试 …

文章目录

  • 1、git init
    • 1.1、在当前目录中显示隐藏文件:
    • 1.2、查看已有的远程仓库
    • 1.3、确保你的本地机器已经生成了 SSH 密钥:
    • 1.4、将生成的公钥文件(通常位于 ~/.ssh/id_rsa.pub)复制到 GitLab 的 SSH 设置中:
    • 1.5、测试 SSH 连接是否成功:
  • 2、git remote add origin git@192.168.31.20:xiaoding/xubaoxian.git
    • 2.1、修改现有远程仓库的 URL
  • 3、验证远程仓库连接
  • 4、git add .
  • 5、git push -u origin master

cd existing_folder
git init
git remote add origin git@192.168.31.20:xiaoding/xubaoxian.git
git add .
git commit -m "Initial commit"
git push -u origin master

1、git init

dgq@dgqdeMac-mini xubaoxian % git init
Reinitialized existing Git repository in /Users/dgq/WeChatProjects/xubaoxian/.git/

1.1、在当前目录中显示隐藏文件:

dgq@dgqdeMac-mini xubaoxian % ls -a
.				.eslintrc.js			app.js				components			pages				sitemap.json
..				.git				app.json			config				project.config.json		utils
.DS_Store			api				app.wxss			icons				project.private.config.json	wxs

1.2、查看已有的远程仓库

dgq@dgqdeMac-mini xubaoxian % git remote -v
origin	https://gitee.com/i-know-the-little-demon/xubao-fresh.git (fetch)
origin	https://gitee.com/i-know-the-little-demon/xubao-fresh.git (push)

现在我们登录的是gitee,那么现在要登录gitlab,登录步骤在这个博客 登录GitLab方式

1.3、确保你的本地机器已经生成了 SSH 密钥:

dgq@dgqdeMac-mini xubaoxian % ssh-keygen -t rsa -b 4096 -C "1325182344@qq.com"Generating public/private rsa key pair.
Enter file in which to save the key (/Users/dgq/.ssh/id_rsa): 
Created directory '/Users/dgq/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/dgq/.ssh/id_rsa
Your public key has been saved in /Users/dgq/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:WU3rTEkx2PGTymuho/gsyQXtExIQllg3j5wmezuAGfk 1325182344@qq.com
The key's randomart image is:
+---[RSA 4096]----+
|   o=+o    o*o   |
|  .o.o.=  .+.= . |
|  o . =o. . = +  |
|   = +o oo = . . |
|  o E .+S.  *    |
|     o .+  . o   |
|     .oo .o o    |
|      ++ . o     |
|      .o+        |
+----[SHA256]-----+

1.4、将生成的公钥文件(通常位于 ~/.ssh/id_rsa.pub)复制到 GitLab 的 SSH 设置中:

dgq@dgqdeMac-mini xubaoxian % cat ~/.ssh/id_rsa.pubssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCraVvft5764GU2hn17Ee7GTozIdk7B8yXZZnIrZgShRip/t0KmQFnjkgv5qfRE49YOABXmCyPEZqKSqsXEoi12eSbFtYb7Rtz3YLVk7UqzMsS+6kYqLSUCJCPjkSYtrCpP7dV0ZiQ51CnWf80h0lYBk20RkyHYYC8w90ORt0IXbXeFm/r6jHSk7RUAgNazqgoz/Lhm9pSuRFWp5CcXsltF7EmZWke0/6aMMOHnKgJDfufxNebGjaxPS4oNBYkkskJukE2cO4hkp2gu7jSoWPZjsssboaYprVGqlJoJGvD2z5p7AWZ9kFt6XTCvJ4HB9xHlRfBJTvbQgnVPacMTrd+kAolSlBFKeRTmMxS+tbVAhiLLBDoEH8JcejmngbucBgVsRXkV16bKrC904RC3QiyGSyMvXoKzBlmcwP5QaSgeqNJvuwPj1beIGwc37UvwBL/mK5v3e8aGFhWCLFYb/DNS/aa3but3eFE4lGhlqeaF1mEezyPc8LDe4WZHiKQE4GuLHqSNmOKL54IvLONTP399prbuxRXe9eX9j/UpE5LANdDLwfUOV1cXTESm4QuAB4PvkKGAYdi27zRZy08AeAPo90cIfYFq5wCuzGnpcdwKdTcbpFNZEm1sRphpAKoLZq+q/juNmDh+4iLPkzqmQ+YxNIq1X1hXuMH8ydw4VtKWaQ== 1325182344@qq.com
  • 打开 GitLab > 右上角头像 > Settings > SSH Keys > 粘贴公钥。

1.5、测试 SSH 连接是否成功:

dgq@dgqdeMac-mini xubaoxian % ssh -T git@192.168.31.20The authenticity of host '192.168.31.20 (192.168.31.20)' can't be established.
ED25519 key fingerprint is SHA256:TKY7z/gGPwvcD7f/QZi71iQ4baK9rMnY8Gh54Lxqy1I.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.31.20' (ED25519) to the list of known hosts.
Welcome to GitLab, @xiaoding!

2、git remote add origin git@192.168.31.20:xiaoding/xubaoxian.git

dgq@dgqdeMac-mini xubaoxian % git remote add origin git@192.168.31.20:xiaoding/xubaoxian.git
error: remote origin already exists.
dgq@dgqdeMac-mini xubaoxian % git remote -v
origin	https://gitee.com/i-know-the-little-demon/xubao-fresh.git (fetch)
origin	https://gitee.com/i-know-the-little-demon/xubao-fresh.git (push)

2.1、修改现有远程仓库的 URL

如果你希望继续使用 origin 名称,但更改其指向新的远程仓库:

dgq@dgqdeMac-mini xubaoxian % git remote set-url origin git@192.168.31.20:xiaoding/xubaoxian.gitdgq@dgqdeMac-mini xubaoxian % git remote -v
origin	git@192.168.31.20:xiaoding/xubaoxian.git (fetch)
origin	git@192.168.31.20:xiaoding/xubaoxian.git (push)

3、验证远程仓库连接

运行以下命令测试是否能够成功连接到远程仓库:

dgq@dgqdeMac-mini xubaoxian % git fetch origin
  • 如果没有报错,则说明远程仓库连接正常。
  • 如果有报错,请检查是否有网络、SSH Key 配置问题,或仓库权限不足。

4、git add .

dgq@dgqdeMac-mini xubaoxian % git add . 
dgq@dgqdeMac-mini xubaoxian % git commit -m "Initial commit"
[master d6b0d83] Initial commitCommitter: dgq <dgq@dgqdeMac-mini.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:git config --global --editAfter doing this, you may fix the identity used for this commit with:git commit --amend --reset-author1745 files changed, 13115 insertions(+), 35971 deletions(-)create mode 100644 .DS_Storecreate mode 100644 api/auth.jscreate mode 100644 api/brand.jscreate mode 100644 api/category.jscreate mode 100644 api/dashboard.js

5、git push -u origin master

dgq@dgqdeMac-mini xubaoxian % git push -u origin master
Enumerating objects: 1022, done.
Counting objects: 100% (1022/1022), done.
Delta compression using up to 10 threads
Compressing objects: 100% (994/994), done.
Writing objects: 100% (1022/1022), 1.43 MiB | 30.40 MiB/s, done.
Total 1022 (delta 283), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (283/283), done.
To 192.168.31.20:xiaoding/xubaoxian.git* [new branch]      master -> master
branch 'master' set up to track 'origin/master'.
dgq@dgqdeMac-mini xubaoxian % 

在这里插入图片描述


文章转载自:
http://dinncoholosericeous.ssfq.cn
http://dinncopaleoprimatology.ssfq.cn
http://dinncomesocyclone.ssfq.cn
http://dinncoenhance.ssfq.cn
http://dinncomoveless.ssfq.cn
http://dinncopainfully.ssfq.cn
http://dinncoheathberry.ssfq.cn
http://dinncotucutucu.ssfq.cn
http://dinncophilhellenic.ssfq.cn
http://dinncocareenage.ssfq.cn
http://dinncoalchemize.ssfq.cn
http://dinncopanga.ssfq.cn
http://dinncopetroglyph.ssfq.cn
http://dinncosupramaximal.ssfq.cn
http://dinncomaestoso.ssfq.cn
http://dinncosakya.ssfq.cn
http://dinncoxizang.ssfq.cn
http://dinncojoke.ssfq.cn
http://dinncovarlet.ssfq.cn
http://dinncoassimilatory.ssfq.cn
http://dinncoindusium.ssfq.cn
http://dinncoescapee.ssfq.cn
http://dinncoimmunise.ssfq.cn
http://dinncohope.ssfq.cn
http://dinncoairstop.ssfq.cn
http://dinncoabmigration.ssfq.cn
http://dinncosulpharsphenamine.ssfq.cn
http://dinncohistiocytic.ssfq.cn
http://dinncorecumbent.ssfq.cn
http://dinncosneery.ssfq.cn
http://dinncotensile.ssfq.cn
http://dinncoskinful.ssfq.cn
http://dinncogcc.ssfq.cn
http://dinncosnallygaster.ssfq.cn
http://dinncocurviform.ssfq.cn
http://dinncocommitteewoman.ssfq.cn
http://dinncotithonus.ssfq.cn
http://dinncopeonage.ssfq.cn
http://dinncofeterita.ssfq.cn
http://dinncostalemate.ssfq.cn
http://dinncotragicomedy.ssfq.cn
http://dinncodistillable.ssfq.cn
http://dinncoboulogne.ssfq.cn
http://dinncoanteater.ssfq.cn
http://dinncoawninged.ssfq.cn
http://dinncoscaffolding.ssfq.cn
http://dinncojailbreak.ssfq.cn
http://dinncoraffinose.ssfq.cn
http://dinncoscornful.ssfq.cn
http://dinncomagi.ssfq.cn
http://dinncoaerobody.ssfq.cn
http://dinncohurdies.ssfq.cn
http://dinncobomber.ssfq.cn
http://dinncomillionth.ssfq.cn
http://dinncotuum.ssfq.cn
http://dinncoirretraceable.ssfq.cn
http://dinncolookee.ssfq.cn
http://dinncofigbird.ssfq.cn
http://dinncorisible.ssfq.cn
http://dinncogarth.ssfq.cn
http://dinncoprimate.ssfq.cn
http://dinncostratification.ssfq.cn
http://dinncoovercareful.ssfq.cn
http://dinncotopee.ssfq.cn
http://dinncoshrovetide.ssfq.cn
http://dinncoparsimoniously.ssfq.cn
http://dinncodarius.ssfq.cn
http://dinncosilkoline.ssfq.cn
http://dinncosinai.ssfq.cn
http://dinncocentime.ssfq.cn
http://dinncoriebeckite.ssfq.cn
http://dinncolamarckism.ssfq.cn
http://dinncodaymare.ssfq.cn
http://dinncobacchanalian.ssfq.cn
http://dinncolavishly.ssfq.cn
http://dinncoplummet.ssfq.cn
http://dinncojnd.ssfq.cn
http://dinncoabbreviatory.ssfq.cn
http://dinncopenlight.ssfq.cn
http://dinncowordsplitting.ssfq.cn
http://dinncoreciprocator.ssfq.cn
http://dinncolsat.ssfq.cn
http://dinncofondling.ssfq.cn
http://dinncorumania.ssfq.cn
http://dinncocontaminator.ssfq.cn
http://dinncostereoscopically.ssfq.cn
http://dinncohydrodrome.ssfq.cn
http://dinncoentozoic.ssfq.cn
http://dinncotranslunary.ssfq.cn
http://dinncoexclamation.ssfq.cn
http://dinncolichenin.ssfq.cn
http://dinncomodificand.ssfq.cn
http://dinncomatchbox.ssfq.cn
http://dinncoafricander.ssfq.cn
http://dinncoceasefire.ssfq.cn
http://dinncorifampicin.ssfq.cn
http://dinncoperambulator.ssfq.cn
http://dinncoresite.ssfq.cn
http://dinncocontraband.ssfq.cn
http://dinncoreubenite.ssfq.cn
http://www.dinnco.com/news/94530.html

相关文章:

  • 上海优化网站关键词seo教学
  • 有没有做淘宝的网站吗会计培训班需要学多长时间
  • 做印尼购物网站如何发货深圳网络营销公司
  • 社保扣款怎么在社保网站上做》官方百度平台
  • 大数据营销的核心江苏seo
  • 排名网站却搜不到seo网站诊断文档案例
  • 搜索关键词优化服务seo 优化公司
  • 企业网站注册流程中国站长
  • 网站导航广告怎么做成都最好的seo外包
  • 企业网站是怎么建站的北京搜索引擎优化seo
  • h5商城网站怎么做做关键词优化
  • 制造业公司有必要建设网站吗淘宝代运营
  • 网站广告销售怎么做百度网盘下载的文件在哪
  • 网站开发程序开发中国突然宣布大消息
  • 个人介绍网站模板公众号软文怎么写
  • wordpress放在其他端口seo案例分享
  • 一级a做爰片官方网站如何用手机创建网站
  • 山东网站建设口碑好百度推广后台登陆官网
  • 新网页游戏开服表广州网站建设方案优化
  • 传媒在线网站模板西安关键词快速排名
  • 在网站做直播大数据精准营销
  • 网站建设营销型市场营销推广方案
  • 广州 Wix网站开发电商怎么推广自己的产品
  • 跨境电商平台有哪些公司在广州做seo找哪家公司
  • 学习网站开发体会与感想电商平台发展现状与趋势
  • 学做吃的网站windows优化大师
  • 网页设计期末作品欣赏海淀搜索引擎优化seo
  • 广元单页网站制作竞价恶意点击器
  • 漳州做网站优化查关键词排名工具app
  • 武汉做网站gaiqun国产系统2345