I have a number of private repos I used in my projects.
Package.json: -
G'day, @U4EA22 and Welcome to the community.
Can clarify your intention behind inquiring about excluding files during a git pull?
I ask because the purpose of git pull is to fetch commits from a remote repository and integrate them into your local branch. The standard git pull command does not offer a built-in feature to exclude specific files during the process. Its primary function is to retrieve and incorporate new commits into your local repository, including all tracked files.
If your objective is to prevent specific files from being overwritten or merged during a git pull, you might need to consider alternative strategies.
One approach is to use .gitignore to specify files or patterns that Git should ignore when performing operations like pull, commit, and push. This can help prevent unintended changes to specific files.
I hope this helps.
Regards,
Syahrul
Sorry, I meant to refer to it as installing, not pulling.
When I install the package via SSH, I would like to do so without installing certain files. For example, I might have a repo of UI components with a sub directory containing a react app to show examples but would only way to install the components library. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.