user12497632
user12497632

Reputation:

How to delete folder from gitlab

i'm learning java and pushing on Gitlab. I have some projects there and now i need to delete one of them(not the whole branch, but folder with application). How can i properly do this? Thanks in advance.

Upvotes: 0

Views: 4067

Answers (1)

EngrEric
EngrEric

Reputation: 4852

To delete files. You can do it locally.

Delete the file you want and run git add .

Notice the (dot) after git add above. The dot means "you want to stage all changes for commit"

Then commit the changes, to commit run git commit -m "deleted unnecessary file"

Finally push to your repo using the command git push origin branch_name_here E.g git push origin master.

This way, the deleted file is gone

Upvotes: 2

Related Questions