Linked Questions

2 votes
2 answers
1k views

so I work on a branch of a master git repository, which is now 4 GB large, because I once pushed raw data by mistake. So what I did is to use git reset--hard@(10) to go back 10 commits and then used ...
Abu Bati5a's user avatar
0 votes
0 answers
66 views

Because my git branch will use a lot of Space, so I have deleted many local branches in my local git directory by issues git branch -D xxxx However, no space is free up in my hardisk. I run git gc ...
want_to_be_calm's user avatar
0 votes
0 answers
61 views

My repository is big after years, so I would like to make it smaller, but i don't know what is the best approach. I would like to delete the older half of my repository, but it must not affect the ...
pradub's user avatar
  • 1
1 vote
0 answers
42 views

We have a git repo of 500MB large. Now it turns out that somewhere in the history a few unneeded files of 50MB - 75MB were added and removed after. To make the repo smaller I've decided to rewrite the ...
Serve Laurijssen's user avatar
4743 votes
43 answers
2.0m views

How do I remove a Git submodule? Why can't I do git submodule rm module_name?
R. Martinho Fernandes's user avatar
2018 votes
26 answers
334k views

I have a Git repository which contains a number of subdirectories. Now I have found that one of the subdirectories is unrelated to the other and should be detached to a separate repository. How can I ...
matli's user avatar
  • 28.7k
314 votes
11 answers
211k views

My current base has a total size of approx. 200MB. But my .git folder has an amazing size of 5GB (!). Since I push my work to an external server, i don't need any big local history... How can I shrink ...
JMW's user avatar
  • 7,877
173 votes
12 answers
147k views

I have a GitHub repository that had two branches - master and release. The release branch contained binary distribution files that were contributing to a very large repository size (more than 250 MB), ...
kkrugler's user avatar
  • 9,550
165 votes
15 answers
127k views

Consider: 145M = .git/objects/pack/ I wrote a script to add up the sizes of differences of each commit and the commit before it, going backwards from the tip of each branch. I get 129 MB, which is ...
Ian Kelling's user avatar
  • 10.1k
186 votes
7 answers
216k views

It seems like my project is getting bigger and bigger with every Git commit/push. Is there a way to clean up my Git folder?
Sheehan Alam's user avatar
  • 61.1k
213 votes
7 answers
251k views

I checked a load of files into a branch and merged. And then I had to remove them and now I'm left with a large .pack file that I don't know how to get rid of. I deleted all the files using git rm -rf ...
user1116573's user avatar
  • 3,097
117 votes
9 answers
95k views

I accidentally added, committed and pushed a huge binary file with my very latest commit to a Git repository. How can I make Git remove the object(s) that was/were created for that commit so my .git ...
Jonas H.'s user avatar
  • 2,531
130 votes
5 answers
100k views

The .git/objects in my rails project directory is still massive, after deleting hundreds of Megabytes of accidentally generated garbage. I have tried git add -A, as well as other commands to ...
light24bulbs's user avatar
  • 3,211
39 votes
19 answers
68k views

I've got a small git repo setup with the only real purpose to be able to develop locally on several machines (work, home, laptop). Thus I have one branch and I commit/push once I leave a computer, ...
Ickmund's user avatar
  • 641
90 votes
8 answers
174k views

What is the folder called .git? It's created in a repository. What is contained within it and why is it created?
Omega's user avatar
  • 1,609

15 30 50 per page
1
2 3 4 5