git has a different solution to do this. First change the file you do not want to be tracked and use the following command: git update-index ...
From the git-checkout man
page of Git 1.8.2.1: If
You could specify what branch you want to pull: git pull origin master. Or you could set it up so that your local master branch tracks github ...
This will keep the local file for you, but will delete it for anyone else when they pull.
I think you did not want to delete some files, just tell git not to track them. For this purpose, "git rm" is a very bad idea indeed. It deletes those ...
This is the quick way in which you can clone a git repository with all ...
The series of commands below will remove all of the items from the Git Index (not from the working directory or local repo), and then will update ...
This is not unambiguously possible in git . Here's an example. Let's say I have a repo on a central server, and it has two branches, called A and B ...
On Machine A: git rm -r --cached . Above command will remove files from the index (both README.md and file_not_to_track). At this time, the ...
The upstream should, but does not have to be, a valid branch (whether remote- tracking like origin/B or local like master ). That is, if the current ...