Hi, I am learning git and there is something I don't get : why a file deleted in a branch gets also deleted in my master? (For the moment I'm only working locally, no remote repository) I have a master branch containing 4 text files called a.txt , b.txt , c.txt , d.txt . (in HEAD) I create a new branch from there (masters HEAD) and go to this new branch. $ git branch new $ git checkout new I delete one file in the new branch $ git rm d.txt $ ls a.txt b.txt c.txt Then I go back to the master branch and list the files there $ git checkout master $ls a.txt b.txt c.txt I have not modified the master branch, why is d.txt deleted there also? There must be something I did not understand in git behaviour (something to do with the index?) Thank you for your help. -- View this message in context: http://n2.nabble.com/%28beginner%29-git-rm-tp2231416p2231416.html Sent from the git mailing list archive at Nabble.com. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
git: | |
| Alexey Dobriyan | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [BUG] New Kernel Bugs |
