How to set the repository of git project to project resources?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By stevepetoskey

So I am very new to github and I want to be able get the files from my project. Which I thought I knew how to do (git clone) but it brings over all of the repository, when all I want it the project folder. Is there a way to get just the project folder or maybe a way to set the projects resources to the repository. Thank you.

:bust_in_silhouette: Reply From: JimArtificer

Generally speaking, the way to use git is to clone the entire repository. Based on the limited information you provided, I would recommend you have a separate git repository for this project. One repo per project or large portion of a project is fairly standard. It is not uncommon for a project to have a separate repo for the back-end server, the website, the game itself, and so on.

If the root of your question is about preventing git from storing/noticing changes in certain files, you can control that with a .gitignore file.

Technical docs:
https://git-scm.com/docs/gitignore#_examples

Simple tool to get you started (enter Godot):