Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7071783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:43:47+00:00 2026-05-28T05:43:47+00:00

I have many large files under project/public/deploy/. All the rest is my source codes.

  • 0

I have many large files under project/public/deploy/. All the rest is my source codes. When i pushed yesterday, still today its not complete yet, and my network is dead slow for this. I understand its because i have largest files and getting pushed, which is like impossible.

How can i tell git push do not ever push the directory, project/public/deploy/?

project/
./application/<all source codes>
./framework/<all source codes>
./public/deploy/download/archlinux.fedora.centos.freebsd.isos.tar.gz
./public/deploy/tutorial/oracle.bigtable.mysql.db2.why.mp4
./public/deploy/tutorial/c.cpp.java.d.vala.tutorial.episode1.mp4
./public/deploy/tutorial/c.cpp.java.d.vala.tutorial.episode2.mp4
./public/deploy/tutorial/c.cpp.java.d.vala.tutorial.episode3.mp4
./public/deploy/tutorial/hacking.android.linux.mp4

Is there any way to put a push flag or put a tiny gitignore file in a direcotry where it can ignore everything? (before trakking and after tracking, when-ever there is a ignore suggestion it will always/forever ignore that directory unless i remove it?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:43:47+00:00Added an answer on May 28, 2026 at 5:43 am

    Large binary files should not live inside your project. Git is not the right tool for that job as you have noticed. The files should be ignored in your project’s .gitignore. Add a line like public/deploy/tutorial/*.mp4 (or less specific if you want).

    Now, as the files are already in your repository, you need to amend the history of your repository. Github has a tutorial on this subject, which boils down to:

    git filter-branch --index-filter \
      'git rm --cached --ignore-unmatch public/deploy/tutorial/*.mp4' \
      --prune-empty -- --all
    

    Now that the repository has been cleaned, you can push it. It should complete as fast as usually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large C project with many separate C files and headers
Like many of you, I have to deal with a large amount of files:
I'm working on a large project (for me) which will have many classes and
I have quite a large VB6 project, with many forms, classes, modules and user
I have a fairly large (new) project in which we have annotated many domain
I have two very large files we'll call Old and New. New contains many
I have a number of really large files with many insert statements (18.7 million
I have a very large project with lots of files. I need to extract
I have large text files upon which all kinds of operations need to be
I have multiple (many) files; each very large: file0.txt file1.txt file2.txt I do not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.