简体   繁体   English

如何在AWS CodeCommit上删除文件或文件夹?

[英]How to delete files or folder on AWS CodeCommit?

I have created a repository using AWS CodeCommit. 我已经使用AWS CodeCommit创建了一个存储库。 I wanted to know how to delete a particular file or folder in it. 我想知道如何删除其中的特定文件或文件夹。

I have created a called testrepo. 我创建了一个叫做testrepo的文件。 It has two folders and a file containing the php code in the source directory with the appspec.yml. 它有两个文件夹和一个包含appspec.yml的源目录中包含php代码的文件。 I was wondering if I could delete the php code file from the source folder in the repository. 我想知道是否可以从存储库中的源文件夹中删除php代码文件。 I have gone through the tutorial/documentation available on AWS site, but I wasn't able to find how to delete a file once it has been upload to the code commit repository. 我已经浏览了AWS站点上的可用教程/文档,但是一旦将文件上传到代码提交存储库后,我就找不到删除该文件的方法。

Welcome to StackOverflow! 欢迎来到StackOverflow!

CodeCommit is just git behind the scenes. CodeCommit只是幕后的git。 You can follow the tutorial from the docs to gain access and clone the repo locally. 您可以按照文档中的教程进行操作,以获取访问权限并在本地克隆存储库。

Once done, you can proceed as if you are working with Github, BitBucket or whatever else repo. 完成后,就可以像使用Github,BitBucket或其他回购协议一样继续进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM