How to clean this Deleted from git

0

Friends I had a file in the local repository. I deleted it and giving the git status the history is like this:

$ git  status
On branch master
Your branch is up-to-date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

    deleted:    testeGit.java

How do I clean it? Make it cute, clean. I do not want the local file anymore, I want it only in github.

    
asked by anonymous 08.10.2017 / 17:02

1 answer

1

Every change you make, either add new file, remove, edit ..

git add -A

Then do Commit

$ git commit -m "Arquivo removido testeGit.java"

See the Status

$ git status
On branch master
nothing to commit, working tree clean
  

Update : As commented by @ nunks-lol, using the command below, you will not use the git add -A

git rm _arquivo_
    
08.10.2017 / 17:39