Hey I\'m trying to get into git, as an emacs user first thing to do is to make sure the ~ and #*# files are ignored by git. Documentation talks about .gitignore which I\'ve been
Add this to your $HOME/.gitconfig
;
[core]
excludesfile = /path/to/your/local/.gitignore
Then it'll be locally available on all your git repositories.
Add this to your gitignore file.
#
.#
I've written about the three ways of excluding files here.
If you created the gitignore file before creating the branches, it's obviously available in them. Otherwise you need to merge that file to other branches.
You can define a global ignore file with git config --global core.excludesfile [ignorefile].
Simplest way to get that file into all branches would be probably git cherry-pick commit with .gitignore file into those branches
create a ~/.gitignore
in your user directory
.DS_Store
*.pyc
.svn
then run: git config --global core.excludesfile ~/.gitignore
Emacs files
\#*#
Since 1.6.2, \
should be supported in .gitignore