Preventing local .gitignore from being pushed to svn repo with git-svn
I’m using git-svn to use git locally and deploy a client’s svn repo. However, after migrating the svn ignore entries to the .gitignore, I have to commit those to git.
But I don’t want that file being pushed as a commit to the svn repo everytime I do a
git svn dcommit
- What is the correct way to convert SVN remote branches and tags into local Git branches/tags during SVN to Git migration
- git-svn rebase “File name too long”
- git-svn stops with no error message when trying to clone
- git-svn not a git command?
- Syncing a Git repository with an SVN repository
- git-svn fails to dcommit, even after clean checkout
2 Solutions collect form web for “Preventing local .gitignore from being pushed to svn repo with git-svn”
you can use git exclude instead. See the last section here:
To exclude .gitignore from being pushed upstream you can include it in the .gitignore file.
Simply, add the line “.gitignore” in your .gitignore file