25 lines
362 B
Bash
25 lines
362 B
Bash
#!/bin/bash
|
|
|
|
# 1. Create .gitignore file
|
|
cat <<EOL > .gitignore
|
|
*
|
|
|
|
!*.mqh
|
|
!*.mq5
|
|
!*.mq4
|
|
|
|
!*/
|
|
|
|
!**/*.mqh
|
|
!**/*.mq5
|
|
!**/*.mq4
|
|
EOL
|
|
|
|
# 2. Initialize git repository
|
|
git init
|
|
|
|
# 3. Add all files to the staging area
|
|
git add .
|
|
|
|
# 4. Execute the command to check eolinfo for files in the index
|
|
git ls-files --format='%(eolinfo:index) %(path)' | column -t | grep '\-text'
|