LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2017, 02:44 PM   #1
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 207

Rep: Reputation: Disabled
/home/.git/objects is 47.1Gig in size


I have been working with Git in order to learn from it. But I did something wrong to have a directory that large.

I have checked the internet to understand what I could have done wrong, but I didn't quite understand it.

First question: could someone explain to me, please, what I could have done wrong.
Second question: since this is just a tryout on my part without anyone participating, how can I make a fresh start? Simply deleting the contents of the folder?
 
Old 07-20-2017, 03:38 PM   #2
NewbProgrammer
Member
 
Registered: Jun 2017
Location: Check my IP address.
Distribution: Gentoo, Puppy, Mint Rosa, Arch, SliTaz, Crunchbang, LinuxBBQ, OpenSUSE, NanoLinux, LFS CentOS.
Posts: 54

Rep: Reputation: 13
Help us help you.

Git usually has a tmp folder somewhere, and /home/.git might be a tmp folder.

Check and see if the .git folder contains source code for packages you use with git. If so, get rid of it unless you are using it for compiling.

The .git folder might also contain git repositories that you created and don't want to get rid of.

So overall, just go over packages in the .git folder that you don't want and remove them.

Last edited by NewbProgrammer; 07-20-2017 at 03:45 PM.
 
Old 07-20-2017, 03:50 PM   #3
!!!
Member
 
Registered: Jan 2017
Posts: 666

Rep: Reputation: 289Reputation: 289Reputation: 289
What did you ?clone?, "get", download? (were they "big trees"?)
Start over: uninstall git pkg, make sure .git is gone, install git, carefully understand what you "fetch"
(use very slow internet, but that's different&crazy idea)

Web-search Title keywords finds: https://stackoverflow.com/questions/...ository-so-big

Last edited by !!!; 07-20-2017 at 04:02 PM.
 
Old 07-20-2017, 04:20 PM   #4
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 207

Original Poster
Rep: Reputation: Disabled
You probably not going to believe this. This is the folder that I found: /home/.git/vimrcfile/.git./ with all the folders like objects, hooks, branches, logs etc.

So essentially, I have a git within a git or something like that.

I am going to uninstall git like !!! has suggested. I will uninstall git and carefully understand what I fetch.

I am pretty new to this, so I really appreciate your answers. Thank you.
 
Old 07-20-2017, 04:34 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178
This folder is a Git repository. "Ook! Ugk! Major Voodoo!" Touch Not!

What's most likely to have happened here is that you aren't making good use of the .gitignore facility: you committed big binary files and maybe lots and lots of them, all of which don't need version-control.
 
1 members found this post helpful.
Old 07-21-2017, 03:22 AM   #6
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 207

Original Poster
Rep: Reputation: Disabled
Yes, now I remember. I did exactly that, sundialsvcs
 
  


Reply

Tags
git


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux Kernel 5.0 to Be Released When We Hit 6M Git Objects, Says Linus Torvalds LXer Syndicated Linux News 2 10-10-2016 06:50 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 03:09 PM
copy constructor for class containing array of vaiable size objects ? qwijibow Programming 4 12-21-2005 10:50 PM
Squid: how to preload cached objects & can restrict size of logs? dravya Linux - General 0 06-04-2004 10:23 AM
MANDRAKE and 1Gig of RAM robotmsn757 Linux - Hardware 2 03-09-2003 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration