Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
docs:git:fixing_cygwin_file_mode_changes [2009/11/06 12:12] – created billhdocs:git:fixing_cygwin_file_mode_changes [2009/11/06 12:45] (current) billh
Line 1: Line 1:
 ====== fixing cygwin filemode changes ====== ====== fixing cygwin filemode changes ======
-Although I haven'yet figured out why the file modes are changing, you can ignore/stop them with this:<code>+** UPDATE ** 
 +This may have been a Vim issue for me.  After modifying a file and saving in Win32 Vim, the filemode was changed and git would say there was a change.  See :help backupcopy in vim for more info.  The fix is to add this to your .vimrc:<code> 
 +:set backupcopy=yes 
 +</code> 
 + 
 +If something else causes this that you can'control, you can tell git to ignore these changes with this:<code>
 git repo-config core.fileMode false git repo-config core.fileMode false
 </code> </code>
Line 6: Line 11:
 ===== External Links ===== ===== External Links =====
   * http://blog.philhersh.com/weblog/2009/09/git-on-windows.html   * http://blog.philhersh.com/weblog/2009/09/git-on-windows.html
 +  * http://tech.groups.yahoo.com/group/vimdev/message/47472
  • docs/git/fixing_cygwin_file_mode_changes.1257534766.txt.gz
  • Last modified: 2009/11/06 12:12
  • by billh