0
Friends I had a file in the local repository. I deleted and when giving 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 don’t want the local file anymore, I want it only on github.
As the goal is to put in "Stage" the deletion of a file, you can also use the
git rm _arquivo_
and "spare" agit add
...– nunks
That I didn’t know, because I hardly use the git, vlw.
– NoobSaibot
I’m from the tribe of purists who say, "use
git add -A
is harmful laziness". Not that it should be avoided as the devil flees from the cross, but it usually infringes concepts such as atomic commits and a better separation from code changes. A properly commited code allows easier commit exchange viacherry-pick
, as well as it is easier to observe the process used in its evolution for reasons of revision and code history– Jefferson Quesado
@Jeffersonquesado I’m always learning here with you :)
– NoobSaibot