Show system files / Show git ignore in osx

前端 未结 10 1726
暗喜
暗喜 2020-12-22 18:46

By default it is not possible to see .gitignore files in osx. What is command to reveal these files?

相关标签:
10条回答
  • 2020-12-22 19:13

    You can edit hidden file in terminal using this command

    open -a TextEdit .gitignore 
    
    0 讨论(0)
  • 2020-12-22 19:16

    if you just want to look at them you can always use the command line:

    ls -al path/to/dir

    If you want to always view all files from the finder you can do:

    defaults write com.apple.Finder AppleShowAllFiles YES

    If you just want to view a .gitignore from the finder you can:

    chflags nohidden /path/to/dir/.gitignore

    But youll have to call that command on every .gitignore its not global.

    0 讨论(0)
  • 2020-12-22 19:17

    Show hide file and folder on MacOs Mojave 10.14.4

    Apply at Terminal

    defaults write com.apple.finder AppleShowAllFiles -boolean true;
    killall Finder;
    
    0 讨论(0)
  • 2020-12-22 19:20

    If you just want to view a .gitignore from the console just type "nano .gitignore" in that directory. This command "nano" simply opens any textfile in nano console environment for viewing or editing

    0 讨论(0)
提交回复
热议问题