You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a demo. You can see that even though commentChar is ;, # continues to be the comment syntax for .gitignore.
$ git statusOn branch masterUntracked files: (use "git add <file>..." to include in what will be committed) #strange-file ;strange-filenothing added to commit but untracked files present (use "git add" to track)
$ git config core.commentChar;
$ echo'#strange-file'>> .gitignore
$ echo';strange-file'>> .gitignore
$ git statusOn branch masterChanges not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: .gitignoreUntracked files: (use "git add <file>..." to include in what will be committed) #strange-fileno changes added to commit (use "git add" and/or "git commit -a")
With set: commentchar = ";"
The text was updated successfully, but these errors were encountered: