Kodi Community Forum

Full Version: Help with Git.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to get this GIT working.

How do I make the git reflect files that have been deleted from my directory?

I am using:

git add Shade
git commit -m 'note'
git push


But it wont delete files from the git that were removed from the Shade directory.
There's probably more efficient ways of doing things, but I just can't grasp git, this is my cheat sheet:

Quote:git commit -a -m"MESSAGE"

git commit -m"MESSAGE"

git add -A

It works, it mirrors my local copy, but there is a more proper way to do things I assume...One of my rainy day things is to read up more on git.
explicitly remove it from the index: git rm
or, if you deleted the files from your folder then "git commit -a" should do it
Code:
mv Shade/* .
git add -A
git commit -a -m "move files to root"

The first line obviously moves the files up a level.

TheUni
Thanks guys, got it.