I'm new to Git, so please bear with me!
I'm working with a clone of a remote repository on Unfuddle. The clone is of an ExpressionEngine install, so I need to make changes to certain files to get the CMS to work on my local machine, I'm running it under MAMP. However, I do NOT want to push these modified files back up to the remote repository when I'm done, nor do I want them sitting in Tower, waiting to have their changes committed.
I've tried ignoring the files, but this causes issues...the ignores get pushed up to the repository, which I also don't want! Other people are working with this repository, and those files should NOT be ignored on their systems. I just basically want Tower to leave the remote repository as-is, but pretend the changes I've made to my local files just aren't there.
Am I asking for the impossible?
-UPDATE- Specifically, I'd like to work with Tower, so knowing how to perform git commands within that framework would be most helpful.
Use
git update-index --assume-unchangedon the tracked files. This is like a "temporary ignore" for tracked files. This will also only apply to your clone and not any one else'shttp://www.kernel.org/pub/software/scm/git/docs/git-update-index.html
Also, in the case of untracked files, it is not necessary that you have to use
.gitignoreto ignore them which makes the ignore propagated to any clone of the repo. You can use$GIT_DIR/info/excludefile to ignore untracked files, only in your repo.