简体   繁体   中英

Opening an html file in windows 7 using git bash

I'm trying to repeat the steps from this video .

I find that the git bash, in my Windows 7 (x64), doesn't accept the command atom for opening an html file. I created the html file using the touch command:

I tried so many sites on how to open a file of a text editor from git bash , but nothing works.

Here's some things to try:

  1. Add the path to atom.exe to your environment variables
  2. Associate atom with all git operations, run: git config --global core.editor "atom --wait" (when you use git bash to edit, this tells it to always use atom)
  3. Add an alias in git: git config --global alias.edit "! atom" and now you can edit any file by calling: git edit [filename]

Here is another SO post with something very similar (I think) to your question: Open Atom editor from git shell .

However, it's difficult to know what your problem is without more detail.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM