When you have gained bash$
access to the server you can explore different methods of altering files. Two popular methods with linux bash is vim and nano. This will open a simple text editor. We recommend you test out what you can do with each one.
nano .gitignore
Nano shorthands
The following commands are shorthands for using nano:
# *control
= ^^X
= exit^O
= save changes^W
= Where is (search)^G
= Get help