I’m new to Git (GitHub for me) and I hope that you could help me.
I work on one project and I often change names of files. Situation is that on my computer I have all files as I want, but in GitHub – all files: those I need and those I deleted (renamed files).
is there any way to automatically delete files that doesn’t exist on my machine also from GitHub?
You need to create a commit that deletes the files to your local repository and the push that commit to Github. To do that, do
git commit -ato commit all changes to tracked files, including deletionsgit pushto push the changes to Github