I'm having some troubles with Git. I've got a project in Netbeans (Java) with plenty of csv and serialized files. I just want to push .java files on bitbucket.
Here's what I'm doing :
git cd myRepositoryPath
git add -A
git rm -r --cached csvFiles/
git rm -r --cached serializedFiles/
git commit -m "..."
git push
But when I do the push, there are still over a 1gb datas that are pushed on bitbucket.
It failed so many times that I tried this : git push origin +id_commit:master to get back to a former commit where everything was fine (no csv & serialized files on bitbucket) and now Git tells me that I'm "ahead of 'origin/master' by 2 commits".
I don't know what to do to make my repository clean again.