I was checking my git log and accidently pressed some stuff like “sqwe” and it got added to the log, now when I do “git status” it shows me the following:
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# sqwe
How do I remove this junk from my git log and status? And what would happen if I dont remobe it? Thanks!
That just means the file exists – it hasn’t been added to git. If you don’t want the file then just remove it. Git will not add it to the commit unless you explicitly ask it to.