Hello,
i use ubuntu and i install git for push my script on bitbicket.
i pushed a file in branch master but now i want to delete this file, the problem is i don't know how to do that, i use this command but not work:
git rm test.vmware.yaml
thanks for any information,
Hi @adtyh jkipmsd, thanks for reaching out!
First of all, please note that this is not a Bitbucket specific question, this is a question specific to Git. That said, I'll still try to help you but you might also like to know that there are other multiple forums where you can find help and information regarding this system :)
The command you pasted above is only one command from the sequence of commands you need to make the operation effective. The removal would go something like this:
git rm <directory>
git commit -m "Removed Directory"
git push origin master
Once you push the change (the removal of the file/s) the operation will be completed and the file/s deleted. If the operation is not successful, you should receive some kind of error. If you do, please let us know and share here the error message so we can look into it.
For additional information, you can also read Git's official documentation.
Hope that helps!
Ana
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.