简体   繁体   中英

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.

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 Eg git push origin master.

This way, the deleted file is gone

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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