- 
      
 - 
        
Save vitalymak/22299bfdc9cb240fb371fa65e0a59300 to your computer and use it in GitHub Desktop.  
    How to set git commit editor to sublime
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Method 1 | |
| git config --global core.editor "'c:/program files/sublime text 3/sublime_text.exe' -w" | |
| Method 2 | |
| git config --global core.editor "subl -n -w" | |
| Method 3 | |
| $ echo 'alias subl="/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe"' >> ~/.bashrc | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment