gpt4 book ai didi

git - 本地文件夹中的更改未反射(reflect)在 git、openstack 上

转载 作者:太空狗 更新时间:2023-10-29 14:47:39 33 4
gpt4 key购买 nike

我正在 Ubuntu 12.04 LTS 上进行 Openstack 开发。我修复了一个小错误。在审查更改后,错误又回来了。我进行了更改并将其推送给 gerrit 审查。现在的问题是,这个小改动没有上传到远程审核中。谷歌搜索后,我发现包含该文件的文件夹存在于 .gitignore 中。我删除了!问题仍然存在。它存在于本地副本中,但更改不存在于远程审阅副本中。 git log 指向最近的提交。其中对本地副本有更改,而不是最终副本。!

akoppad@akoppad:/opt/stack/horizon$ git status
# On branch bug/1189393
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: .gitignore
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# static/
no changes added to commit (use "git add" and/or "git commit -a")
akoppad@akoppad:/opt/stack/horizon$

我上传补丁后,变化仍然不存在?我不确定发生了什么?

这里是整个过程的完整纲要:

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch bug/1189393
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: openstack_dashboard/static/dashboard/less/horizon.less
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# static/


akoppad@akoppad:/opt/stack/horizon$ git status
# On branch bug/1189393
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: openstack_dashboard/static/dashboard/less/horizon.less
# new file: static/dashboard/css/339f94897afb.css
#
akoppad@akoppad:/opt/stack/horizon$
git log


commit 0a46d93a186ca32523d2d6166246c279eabf54b8
Author: Annapoornima Koppad <a.koppad@gmail.com>
Date: Sat Jul 6 12:07:23 2013 +0530

Added btn-create with btn-launch in loadbalancer dashboard

implements bug 1189393

Change-Id: Iceab75c34175677776107356435b421b54798e37

commit f2c7db09791dc8c4fb329f535c330bfd3bdf98f4
Author: Annapoornima Koppad <a.koppad@gmail.com>
Date: Mon Jun 24 18:11:08 2013 +0530

Added btn-create loadbalancer dashboard

Fixes bug 1189393

Change-Id: Iceab75c34175677776107356435b421b54798e37

akoppad@akoppad:/opt/stack/horizon$ git commit -a
[bug/1189393 1e69613] There is an error with my git. The local changes are not reflecting on the review button. Please ignore if the changes that were asked are still not present on this commit.
2 files changed, 5653 insertions(+), 1 deletion(-)
create mode 100644 static/dashboard/css/339f94897afb.css

感谢任何输入!

最佳答案

I found that the folder which which had the file was present in the .gitignore. I removed that! The problems still persists.

从 .gitignore 中删除该表单是不够的。

您需要添加并提交在 .gitignore 文件中声明为忽略的文件夹或文件。

关于git - 本地文件夹中的更改未反射(reflect)在 git、openstack 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17500512/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com