Link to home
Start Free TrialLog in
Avatar of sduser1
sduser1Flag for United States of America

asked on

Git -remove one file from local branch

I have list of files on my local branch. I see one extra file.  I want to remove that file but not able to remove it


I have 4 files.
Test1.js
Test2.js
Test3.js
Test4.js

when I submit the review in rbt commons, I see Test1.js.

Tried to remove the file in GitHub ui interface, it does not let me remove

Used the below to checkout the file from master

Git checkout master Test1.js

i still see the file as one of the changed file in my local repo.

Need help removing it
Avatar of sduser1
sduser1
Flag of United States of America image

ASKER

i found a way to delete the file through github.  When i submit the review, the file shows it is deleted.

Is there a way not to show the deleted file?
Avatar of sduser1

ASKER

How do i commit a deleted file so it does not show up in the list?
ASKER CERTIFIED SOLUTION
Avatar of sduser1
sduser1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial