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

商城网站建设开发多少钱文档做网站

商城网站建设开发多少钱,文档做网站,网站开发公司经营范围,ssh jsp做网站文章目录 概述git push 语法步骤1#xff1a;git 远程主机名查看步骤2#xff1a;git 远程分支名查看步骤3#xff1a;git 本地分支名查看示例演示 概述 在日常工作中#xff0c;将代码 git clone 本地之后#xff0c;或者使用repo init repo sync 之后不知道… 文章目录 概述git push 语法步骤1git 远程主机名查看步骤2git 远程分支名查看步骤3git 本地分支名查看示例演示 概述 在日常工作中将代码 git clone 本地之后或者使用repo init repo sync 之后不知道使用什么命令将修改好的代码git push 到服务器上本篇文章以自己工作中遇到的实际问题为例介绍下如何在不知道 git push 的具体参数的情况下一步一步查找到git push的正确命令。 git push 语法 我们都知道 push 命令的作用是将本地当前分支的代码推送到远程指定的分支上其命令的格式如下 git push 远程主机名 本地分支名:远程分支名使用 git push 命令将 本地分支名 的代码推送到 远程主机名 中的 远程分支名 上。 远程主机名 指的是你想要推送到哪个远程主机中在我们克隆一个项目的时候git 会自动帮我们把远程主机起名为 origin一般情况下是不会去修改这个名字的。本地分支名是本地分支的名字可以使用命令 git branch 来查看本地有哪些分支。远程分支名指的是远程主机中的分支名如果远程主机没有这个分支则会新创建一个。 步骤1git 远程主机名查看 使用 git remote 命令或者 git remote -v 命令 [10:45:53]samlinux (*^~^*) ~/sam/workbase/npu_code/device$ git remote arm-valor [10:47:31]samlinux (*^~^*) ~/sam/workbase/npu_code/device$ git remote -v arm-val ssh://codereview.armtech.com/arm_val/device (fetch) arm-val ssh://codereview.armtech.com/arm_val/device (push)所以可以看到远程主机名为 arm-val。 步骤2git 远程分支名查看 使用 git branch -vv 可以看到远程分支名为arm-val/arm_main [10:54:31]samlinux (*^~^*) ~/sam/workbase/npu_code/device$ git branch -vv * test b3f0b95 [arm-val/arm_main: ahead 1] device: compile: support npu device compile步骤3git 本地分支名查看 HEAD 表示一个特别的指针指向你正在工作的本地分支的指针可以当做是本地分支的别名。git 通过它可以知道当前工作区间在哪个分支。 refs/for 表示我们提交代码到服务器之后是需要经过 code review 之后才能进行merge 操作的而 refs/heads 是不需要的。 所以 git push 的命令为 git push 远程主机名 HEAD:refs/for/远程分支名示例演示 查看远程分支名 [10:45:26]samlinux (*^~^*) ~/sam/workbase/npu_code/device$ git branch -vv * test b3f0b95 [arm-val/arm_main: ahead 1] device: compile: support npu device compile查看远程主机名 [10:37:30]samlinux (*^~^*) ~/sam/workbase/npu_code/device$ git remote -v arm-val ssh://codereview.armtech.com/arm_val/device (fetch) arm-val ssh://codereview.armtech.com/arm_val/device (push)开始推代码 使用 git push arm-val HEAD:refs/for/arm_main 开始推代码 [10:37:00]samlinux (*^~^*) ~/sam/workbase/npu_code/device$ git push arm-val HEAD:refs/for/arm_main Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Delta compression using up to 16 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 485 bytes | 485.00 KiB/s, done. Total 4 (delta 3), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (3/3) remote: Processing changes: refs: 1, done remote: ERROR: commit 4b80700: missing Change-Id in message footer remote: remote: Hint: to automatically insert a Change-Id, install the hook: remote: gitdir$(git rev-parse --git-dir); scp -p -P 29418 samcodereview.armtech.com:hooks/commit-msg ${gitdir}/hooks/ remote: or, for http(s): remote: f$(git rev-parse --git-dir)/hooks/commit-msg; curl -o $f https://codereview.armtech.com/tools/hooks/commit-msg ; chmod x $f remote: and then amend the commit: remote: git commit --amend --no-edit remote: Finally, push your changes again remote: To ssh://codereview.armtech.com/arm_val/device! [remote rejected] HEAD - refs/for/arm_main (commit 4b80700: missing Change-Id in message footer) error: failed to push some refs to ssh://codereview.armtech.com/arm_val/device按照提示操作 [10:37:46]samlinux (*^~^*) ~/sam/workbase/npu_code/device$ gitdir$(git rev-parse --git-dir); scp -p -P 29418 samcodereview.armtech.com:hooks/commit-msg ${gitdir}/hooks/[10:38:01]samlinux (*^~^*) ~/sam/workbase/npu_code/device$ git commit --amend --no-edit [uefi_test b3f0b95] device: compile: support npu device compileDate: Wed Dec 6 14:38:57 2023 08001 file changed, 3 insertions(), 3 deletions(-)修改后再次重推 [10:38:15]samlinux (*^~^*) ~/sam/workbase/npu_code/device$ git push arm-val HEAD:refs/for/arm_main Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Delta compression using up to 16 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 520 bytes | 520.00 KiB/s, done. Total 4 (delta 3), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (3/3) remote: Processing changes: refs: 1, new: 1, done remote: commit b3f0b95: Missing issue-id in commit message remote: Commit b3f0b957b0c5dd4911707855dec98f321dcfa737 not associated to any issue remote: remote: Hint: insert one or more issue-id anywhere in the commit message. remote: Issue-ids are strings matching (DPTS[WE][A-Z]*-[0-9]) remote: and are pointing to existing tickets on its-jira Issue-Tracker remote: remote: SUCCESS remote: remote: https://codereview.armtech.com/c/arm_val/device//9820 device: compile: support npu device compile [NEW] remote: To ssh://codereview.armtech.com/arm_val/device* [new reference] HEAD - refs/for/arm_main至此成功完成了 git push 的命令。 TIPS: 遇到问题还是要多查查小时候学的口号“不懂就要问” 应该改为 “不懂就去查”… 在查找分析结束后自己最好复盘下。即便别人告诉你答案你还是不知其所以然
http://www.zqtcl.cn/news/754067/

相关文章:

  • 潍坊网站建设外贸制作html网站
  • 网站友情链接怎么添加定制酒营销方案
  • 目前最流行网站开发软件泰州市建设工程招标网
  • 福州网站优化me域名网站
  • 网站 案例互联网外包公司值得去吗
  • 做医疗护具网站浙江立鹏建设有限公司网站
  • 织梦制作手机网站c 网站开发需要学什么软件
  • 罗湖网站制作阿里巴巴开店网站怎么做
  • 深圳住房和建设局网站 招标怎样建设自己的视频网站
  • 网站建设的目的模板茶网站建设需要多少钱
  • 珠海市城乡住房建设局网站网站外链
  • 福田做网站需要多少钱做淘宝客网站性质
  • html网站怎么进入后台网站主题怎么写
  • wordpress怎么ftp建站高端网站建设域名注册
  • 我用织梦5.7做个网站应该把淘宝客店铺链接放到哪聊天软件开发需要多少钱
  • 站长工具爱站竞价单页网站制作
  • 网站分类目录大全购物网站大全棉鞋
  • 网站镜像做排名建立外贸英文网站应该怎么做
  • 上海做网站就用乐云seo手机网站cms 下载
  • 做网站需要固定ip么灵犀科技网站建设
  • 深圳高端做网站建设网站备案与不备案区别
  • 家居企业网站建设公司苏州高新区建设局网站管网
  • 体育门户网站模板seo网络推广有哪些
  • 石家庄网站建设教程百度云下载
  • 怎样查看网站建设时间公司网站关键词优化
  • 网站淘宝推广怎么做网站seo基本流程
  • miit网站备案济南哪里做网站
  • 做网站软件的公司前端优化
  • 哪个网站有做形象墙汉沽网站建设制作
  • 网站alexa排名查询免费发帖的平台有哪些