Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

497
Visualizações
How to edit gitignore file

I started TheOdinProject on Ubuntu 18.4 and in the Git section it tells me to edit the .gitignore file. I already created it using touch .gitignore and it is showing up when i type ls -la but I don't see it in Files. In the video https://www.youtube.com/watch?v=HVsySz-h9r4 that is referenced the file is already open and there isn't an explanation on how to open it. How do I open the .gitignore file from Terminal in order to add something like .DS_Store in it?

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

.gitignore files are hidden on *nix operating systems because of their dot prefix (link). However you can access them as normal from the shell. e.g. nano .gitignore.

over 4 years ago · Santiago Trujillo Relatório

0

ls -lah (the h flag is for hidden files)

You can open and edit it with any terminal text editor (or GUI code text editor)

over 4 years ago · Santiago Trujillo Relatório

0

You need need to even use any editor(Vi or GUI based) to simply add the .DS_Store in your newly created .gitignore file, following are the screen-shot of commands, which I just did on my new repo to explain you better.

Step 1, to see the hidden .gitignore file, use the ls -la command, which would show the file as below

enter image description here

Step 2: Add .DS_Store to your .gitignore file, use below commands

echo .DS_Store >> .gitignore

Step 3. check the content of .gitignore file

cat .gitignore

The below image shows adding and checking the content of .gitignore.

enter image description here

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda