October 9, 2012 #git

Sometimes it's common that we tracked some files in the git repository first but later decided not to. For instance in rails application it could be database.yml file. So you added database.yml to .gitignore but when you changed something in that file, git will still show you.

Solution

  1. First added files you don't want to track to .gitignore
  2. Then use either method 1 for single file, or method 2 for folders below.

method 1: git update-index --assume-unchanged

git update-index --assume-unchanged config/database.yml

This works very well with single file, I'm not sure but maybe it doesn't support folder.

Method 2: git rm -r --cached

# This removes everything from the index
git rm -r --cached .

# This will only add files not listed in the .gitignore
git add .
# then commit it
git commit -m ".gitignore is now working"

git - .gitignore file not ignoring - Stack Overflow

June 20, 2010 #git

GitboxはGitバージョンコントロールのGUIトールです。
表題の通りFor Macです。

Gitbox is a Mac OS X graphical interface for Git version control system. In a single window you see branches, history and working directory status.
Everyday operations are easy: stage and unstage changes with a checkbox. Commit, pull, merge and push with a single click. Double-click a change to show a diff with FileMerge.app.

ステージや、コミット、プール、マージなどの作業が
簡単にできそうです。

まだpreviewバージョンですが、使ってみる価値はあると思います。

使い方

File -> Open Repository(Command + O)で
Githubで管理しているディレクトリを開けます。