git - 如何从 git 中删除 'XXX$1.class'?

标签 git github

这是我试过的:

$1.class

我也想不出如何直接在github上删除它...

最佳答案

你应该做一个 git rm target/classes/test/java/NewTest$1.class。您还可以执行 git add -A ,这也会暂存删除​​。如果在较新版本的 git 上,您可能需要执行 git add -A :/

从那里像往常一样提交 git commit -m "deleted file...",然后 git push origin master 也会在 github 上删除它(假设你在 master 分支上)。

请务必将 *.class 添加到您的 .gitignore 文件中。

关于git - 如何从 git 中删除 'XXX$1.class'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16781133/

相关文章:

git - Linux 最好的加密 git 凭证助手是什么?

github - 使用 NuGet : Unable to load the service index error 发布和使用 GitHub 包存储库

git - 无法 promise 在 Windows 10 (GnuPG) 上使用 gpg2 进行签名

git - 在比较它们之间的差异后,如何使用旧的 git 标签更新当前的主分支?

linux - 在 Oracle Enterprise Linux 5 上安装 git 存储库 -- SSH 问题

javascript - 将 git 存储库重新安装为 React 包

git - 无法访问Github 403错误: Permission Denied

Github操作-/bin/sh : 1: jest: not found

linux - 如果 git 仓库已经存在,我可以克隆它吗?

windows - Windows 命令行 merge 工具