Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8685935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:42:26+00:00 2026-06-12T22:42:26+00:00

I deleted a file using git rm test and currently this is the output

  • 0

I deleted a file using git rm test and currently this is the output of git status .

Noob@Noob:/media/data/bitbucket/pythonscripts$ git status .
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       deleted:    test
#

Now when I try to push the change in my repo using git push it says Everything up-to-date. I understand that normally one needs to first add and than commit before push but in my case what do I add beacause I have already deleted the file.

Also if I do git commit -m "commit message" will this override all my commits because currently I have no file to attach this commit to.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:42:28+00:00Added an answer on June 12, 2026 at 10:42 pm

    After doing git rm you need to do git commit. Git says that Everything up-to-date is because you have not created a commit with this file removed.

    For example if you do git reset --hard you’ll see that your file is back.

    In general git rm is no different from git add.


    will this override all my commits

    No it won’t, it will create a new commit with this file removed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to delete a range of data from a text file using PHP.
I want to delete a file into recycle bin. I using this code. SHFILEOPSTRUCT
I need to insert, delete and update data using a xml file. I have
I have a file, foo.txt Create and checkout branch 'branch_A' git mv foo.txt bar.txt
I get an unexpected appearance of dev/null in my git status output after interactively
I have a Git repo that I have deleted four files from using rm
I made something very stupid. I made a commit using git commit (file edits
I have deleted a file a couple of times in git, but it keeps
I want to delete a file using racket. I am using following code. (delete-file
I'm using : log_file = AWS::S3::Bucket.logs_for('downloads.idance.net').first I would then like to delete each file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.