使用 Git GUI 删除文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3109248/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 04:22:11  来源:igfitidea点击:

Removing files using Git GUI

gitgit-gui

提问by Rodrigo Souza

Is there any way to remove a file using git gui then commit and push?

有没有办法使用 git gui 删除文件然后提交和推送?

采纳答案by VonC

Not directly, since git guiis more about:

不是直接的,因为git gui更多的是:

allowing users to make changes to their repository by making new commits, amending existing ones, creating branches, performing local merges, and fetching/pushing to remote repositories

允许用户通过进行新提交、修改现有提交、创建分支、执行本地合并以及获取/推送到远程存储库来更改其存储库

An extension like TortoiseGitwould allow a git rmto be performed graphically.

TortoiseGit这样的扩展允许git rm以图形方式执行a 。

回答by SamB

You could also just delete the file and thenstage that to be committed in git gui.

您也可以只删除文件,然后暂存要在git gui.