P
P
Pavel23452022-04-06 22:19:24
git
Pavel2345, 2022-04-06 22:19:24

How to create a gitignore file on mac when uploading a project to gitHub?

How to create a gitignore file on mac when uploading a project to gitHub?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Kuznetsov, 2022-04-07
@Pavel2345

The .gitignore file is not created when the finished work is submitted to an external repository, but long before. Preferably even before the first local commit is created. This is a plain text file and is created like any other code file. Mac is no different from Windows or Linux. Unless the Finder does not show names starting with a dot. If you press command+ shift+ ., you will see hidden files. But we still create files in a text editor or IDE, and not in Explorer. Both the editor and Git see this file anyway.

V
Vasily Bannikov, 2022-04-06
@vabka

You just create a file called .gitignore, write everything that needs to be ignored into it, commit to a turnip. That
's it But the already committed files that are ignored will not disappear from this - they will have to be deleted separately.

A
AVKor, 2022-04-06
@AVKor

In any way that suits.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question