push 相关问题

在分布式版本控制中,推送是将本地更改发送到远程存储库的操作。

我如何使用 GitHub Actions 进行提交和推送

我试图推送操作中所做的更改,但它总是抛出错误。 我已经尝试使用具有所有权限的令牌,但它仍然不起作用。 这就是我所拥有的...

回答 1 投票 0

如何将特定提交推送到远程,而不是之前的提交?

我已经对不同的文件进行了多次提交,但到目前为止我只想将一个特定的提交推送到我的远程存储库。 这可能吗?

回答 7 投票 0

无法推送这些提交,因为它们包含在 GitHub 上标记为私有的电子邮件地址

当我尝试使用 GitHub Desktop 推送我的提交时,它显示此错误“无法推送这些提交,因为它们包含在 GitHub 上标记为私有的电子邮件地址” 请帮我解决这个问题

回答 6 投票 0

git push 在移动目录/最小更新后挂起

我是一个超级初学者,我想弄清楚为什么我的 git push 在一次小更新后挂在一个超级基本的 html/css 页面推送上。我说的是超级基本页面,比如没有 Javascript 或任何东西。 ...

回答 0 投票 0

如何推送连续多次调用的结果

我正在尝试获得所有响应,并将其推送到一个数组中。在我得到所有回应后,我想让他们看到 为此,我正在开发此功能: 对于每个值,我都会进行不同的调用: “

回答 1 投票 0

安卓应用华为发布问题,com.huawei.hms.common.ApiException: 6003: certificate fingerprint error?

我做了一个应用程序。 在调试版本中一切都很好,推送(我使用 onesignal)消息也收到了。 但是上传到华为商店的版本(release)收不到推送乱七八糟的……

回答 2 投票 0

我可以像 facebook 一样使用 php mysql ajax 向 opera 移动浏览器发送推送通知吗

我正在使用这个代码,它只是桌面浏览器,当我仍然是这个页面时,我想远程访问浏览器。 我想像 hiw facebook 发送一样向 Opera 移动浏览器发送推送通知。 P...

回答 1 投票 0

如何通过对象键 Vuex 获取唯一的对象数组过滤?

我期待获得一个新的对象数组,其中包含不可重复的键值 trip_class。但我仍然得到 30 个对象项,而不是一个或两个。使用计算出的对象初始数组...

回答 1 投票 0

基于动态数组的堆栈

我正在尝试创建一个基于动态数组的堆栈,当我尝试将元素元素推送到完整数组时,我得到了一个索引超出范围的错误。我还制作了通用数组以容纳所有

回答 2 投票 0

.pop 和 .push 在我使用 .pop 时无法正常工作,应用程序不会让我返回主屏幕。dart

我正在创建自己的应用程序,但我正在使用此视频作为指导来教我 https://www.youtube.com/watch?v=B8Sx7wGiY-s&t=167s。 问题是我有一个 drawerlist.dart: 列表块( 领导:

回答 0 投票 0

如何将新任务推送到数组?

我希望在现有任务列表的顶部显示一个新任务。但是在单击“添加”按钮后,我收到错误无法读取未定义的属性(读取“id”),即使我是

回答 1 投票 0

如何使用 PHP 为我的产品表单执行 PUSH 逻辑?

首先晚安, 我有一个表格,我需要为它创建一个推送。这是我的表格如下: 首先晚安 我有一个表格,我需要为它创建一个推送。这是我的表格: <div class= "product-form-div"> <form method="POST" class="product-form" id="product-form" name="product-form" enctype="multipart/form-data"> <label for="image">Image: </label> <input type="file" id="image" name="image" required placeholder="Provide the Image"> <label for="SKU">SKU: </label> <input type="text" name="SKU" id="SKU" placeholder="Unique Code Identificator"> <br> <label for="name">Name *: </label> <input type="text" id="name" name="name" required placeholder="Provide the product name"> <br> <label for="price">Price($) *:</label> <input type="number" id="price" name="price" step="0.01" required placeholder="Provide the price"> <br> <label for="product_type" class="productType">Product Type</label> <select name="product_type" id="productType"> <option value="dvd">DVD</option> <option value="book">Book</option> <option value="furniture">Furniture</option> </select> <br> <div class="DescriptionProduct"> <div id="DVD"> <label for="size">Size(MB) *:</label> <input type="number" id="size" name="size" step="0.01" placeholder="What are the MBs?"> <br> </div> <div id="Book"> <label for="weight">Weight(KG) *:</label> <input type="number" id="weight" name="weight" step="0.001" placeholder="The book's Weight?"> <br> </div> <div id="dimensions"> <label for="height">Height(CM) *:</label> <input type="number" id="height" name="height" step="0.01" placeholder="Product's Height please"> <br> <label for="width">Width(CM) *:</label> <input type="number" id="width" name="width" step="0.01" placeholder="Product's Width please"> <br> <label for="length_">Length(CM) *:</label> <input type="number" id="length" name="length" step="0.01" placeholder="Product's Lenght please"> <br> </div> <label for="description">Description *:</label> <textarea name="description" id="description" required placeholder="Describe more about your product."></textarea> <div class="buttons"> <a> <button id="save-product-btn" type="submit" name="product-form"> Save </button> </a> <a> <button> Cancel </button> </a> </div> </div> </form> <script> document.getElementById('DVD').style.display = 'none'; document.getElementById('Book').style.display = 'none'; document.getElementById('dimensions').style.display = 'none'; document.getElementById('productType').addEventListener('change', function() { document.getElementById('DVD').style.display = 'none'; document.getElementById('Book').style.display = 'none'; document.getElementById('dimensions').style.display = 'none'; var option =this.value; if (option == 'book') { document.getElementById('Book').style.display = 'block'; }else if (option == 'dvd') { document.getElementById('DVD').style.display = 'block'; }else if (option == 'furniture') { document.getElementById('dimensions').style.display = 'block'; } }); </script> </div> 我需要用 PHP 为它创建一个推送,我能做什么? 我已经检查了我的数据库连接,它工作正常。我现在做什么? 我尝试了很多方法来创建推送,遗憾的是,没有一个成功。 其中之一是: if(isset($_POST['product-form'])) { $sku = $_POST["SKU"]; $name = $_POST["name"]; $price = $_POST["price"]; $productType = $_POST["product_type"]; $description = $_POST["description"]; switch ($productType) { case "dvd": $size = $_POST["size"]; $dimensions = ""; break; case "book": $weight = $_POST["weight"]; $dimensions = ""; break; case "furniture": $height = $_POST["height"]; $width = $_POST["width"]; $length = $_POST["length"]; $dimensions = "Dimensions: $height x $width x $length (cm)"; break; default: $dimensions = ""; break; } include_once '/src/db_config.php'; $stmt = $pdo->prepare("INSERT INTO products (image, sku, name, price, product_type, size, weight, dimensions, description) VALUES (:image, :sku, :name, :price, :product_type, :size, :weight, :dimensions, :description)"); $stmt->bindParam(':image', $image); $stmt->bindParam(':sku', $sku); $stmt->bindParam(':name', $name); $stmt->bindParam(':price', $price); $stmt->bindParam(':product_type', $product_type); $stmt->bindParam(':description', $description); $stmt->bindParam(':size', $size); $stmt->bindParam(':weight', $weight); $stmt->bindParam(':dimensions', $dimensions); // execute a declaração SQL $stmt->execute(); echo "sucess"; exit(); } 根据您的代码,您看起来像是一个提交按钮。您需要添加 action="somefile.php" 以将表单数据提交给 php 控制器,然后让您将数据添加到数据库中。在你的 php 文件中执行 print_r($_POST);查看您传递到文件中的数据。

回答 1 投票 0

用 if 语句停止 .push

这是我需要完成的课程的简单雨滴程序。我想告诉程序是否有 25 个 yPositions 和 xPositions 数组以停止使用 if

回答 1 投票 0

我对这个简单的雨滴阵列程序有疑问

我正在尝试编写代码,以便每次 yPositions 数组 [0] 达到值 400 时,程序将: 创建一个以随机 xPositions 值落下的新雨滴数组 重置...

回答 0 投票 0

for 循环对于数组数组的动态数据不能正常工作

questionOptions[index] 是 ["Yes","No"] 链接 = [ {Value="No"}, {Value="Yes"}, {Value="No"} ] 我的 responseValues 静态值为 [ [0, 0, 0 ]...

回答 0 投票 0

GitHub 操作,绕过分支保护时发送通知

我正在尝试设置一个 GitHub 操作,该操作在合并未通过所有状态检查的拉取请求时触发 这就是我现在所拥有的 名称:警报合并失败的检查 在: 推:

回答 0 投票 0

尝试从 Git 推送时如何更改 GitHub 帐户?

所以我可能已经在一个我以后不会使用的帐户下设置了Git,我想将该帐户更改为我个人的GitHub帐户。我想推动我个人而不是......

回答 3 投票 0

github 在推送 ssh 时看到错误的用户名

我正在尝试推送到我的 github 存储库。 我按照官方 github 的说明设置 SSH 访问。密钥验证成功: $ ssh -T [email protected] 嗨 1234ru!你成功了...

回答 0 投票 0

Git,使用不同的行尾再次推送提交一次

我不小心用错误的行尾(CRLF 而不是 LF)推送了我的提交。是否可以将其回滚并再次发送正确的行尾。因为 pull request 现在一团糟。

回答 2 投票 0

我可以在 Git 中决定推送最后一次提交吗?

我的工作流程如下: 在开发过程中,我经常(本地)提交,无论我是否达到了任何里程碑,只是为了备份并在开发走向战争时能够恢复......

回答 2 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.