I have a clone of a remote repository. Now, I’d like to remove some directories from the projects (in my clone as well as in the remote repository).
I simply don’t know which steps to follow (I’m pretty new to git). I’ve tried to use
git rm -r path/to/my/directory
It deletes the directory locally but I don’t know how to delete them on the origin…
The status display then:
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
deleted: path/to/my/directory/file1.txt
...
Can anybody help?
You first need to commit your changes:
Then you just need to push your changes to your origin: