---
title: "Discussion on \"How to Delete Unwanted Files from Remote Git Repo While Keeping Them on Local Repo\" | Hashnode"
description: "Discussion on \"How to Delete Unwanted Files from Remote Git Repo While Keeping Them on Local Repo\". Delete files from GitHub while keeping them on your local repository (eg: .env, node_modules, etc)"
url: "https://hashnode.com/posts/how-to-delete-unwanted-files-from-remote-git-repo-while-keeping-them-on-local-repo/676ecb95d10049d140d1ff02"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Delete Unwanted Files from Remote Git Repo While Keeping Them on Local Repo](https://blog.ehoneahobed.com/how-to-delete-unwanted-files-from-remote-git-repo-while-keeping-them-on-local-repo?utm_source=hashnode&utm_medium=feed)

Delete files from GitHub while keeping them on your local repository (eg: .env, node\_modules, etc)

Dec 27, 2024 · 4 min read · blog.ehoneahobed.com  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)
-   [#technical](https://hashnode.com/tag/technical)

## Written by

[Dr. Ehoneah Obed](https://hashnode.com/@ehoneahobed)

@ehoneahobed

  
[View profile](https://hashnode.com/@ehoneahobed)

Software and AI engineer, health informatician, and registered pharmacist. I write about what I build and what I learn.

Heya! 👋 I love helping people, and one of the best ways I do this is by sharing what I learn and build. I started as a pharmacist at a tertiary hospital in Northern Ghana, where I saw how much technology could improve healthcare. That sparked my interest in digital health. I taught myself to code, then joined the ALX Software Engineering program, which became a turning point. I went on to complete a Master of Health Informatics at the University of Toronto. Today I am a software and AI engineer and a health informatician, and I practise remotely as a Digital Health Pharmacist. I combine clinical experience with technical skills to build tools that solve real problems in health and beyond, and I write here about what I build and what I learn.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
