UrbanPro
true

Learn DevOps Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

DevOps Git

DeepQuest Software Pvt Ltd
23/03/2018 0 0

Removing a file from git staging (index) area.

Assume git add sample file => for adding the file to git staging area.

Check the git status command

Use git rm for removing the content from working tree and index of the repository.
Examples are,

git rm --cached sample file

The command given above will remove the file from staging area but still available in working copy.

git rm -f sample file

The above command will remove the file from working copy as well as from staging area.

Note:
Unless the file is added to the staging area, git rm command won’t execute on that file.

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

DevOps Git Lession
*********** GIT ************Git Index:==========1. Introduction to git2. Terminology3. Repo4. gitignore5. logs6. Branching7. Merging8. stash9. unstaging(rm, reset, revert)10. Tags11. bisect12. HEAD13....

Want to build your career on market leading technologies then you can choose AWS and DEVOPS and BIGDATA
HI friends if you are serious to shape and build your career to High level you can move to AWS and DEVOPS and BIGDATA There are many cloud computing services /providers ..AMAZON is the Best of all ,and...
I

Invitech It Solutions

0 0
0

Install MySQL 5.7
# MySQL MySQL is the database service which is needed for the application. So we need to install it and configure it for the application to work. ## Manual Steps to Install MySQL As per the Application...

How to install Apache HTTP in Linux OS
sudo bash // for becoming super user // now left hand side you can see root yum update // for updates yum install httpd // for installing httpd software service httpd start // for starting httpd software Once...

Top 6 Technology Trends for 2020
Technology has been evolving at a pace that the annual predictions about trends may seem to be outdated before they go live as a published blog post or article. The technology when evolves...
X

Looking for DevOps Training Classes?

The best tutors for DevOps Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn DevOps Training with the Best Tutors

The best Tutors for DevOps Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more