Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git no space left on device

Tags:

I did git pull --rebase and I got following error:

 error: file write error (No space left on device)  fatal: unable to write sha1 file   fatal: unpack-objects failed 

I have lot of space on my device. Don't know why it is showing this error.

First time I got this error.

like image 761
Rahul Tapali Avatar asked Jan 15 '13 06:01

Rahul Tapali


People also ask

How do I fix no space left on my phone?

Fix 1: Restart Processes Using Deleted Files The most probable cause of the “No space left on device” error is a process still using a deleted file. Thankfully, fixing this error is easy. You just need to restart the process to free up the reserved storage.

What is git clean command?

To recap, git clean is a convenience method for deleting untracked files in a repo's working directory. Untracked files are those that are in the repo's directory but have not yet been added to the repo's index with git add .

What is git repack?

DESCRIPTION. This command is used to combine all objects that do not currently reside in a "pack", into a pack. It can also be used to re-organize existing packs into a single, more efficient pack.


1 Answers

You're out of drive space. Delete some unused files from anywhere on your machine. After you've done some housecleaning, you may think about running git gc to have git garbage collect your repository; if you've made lots of changes to git's objects recently - like can happen with a rebase - you can reclaim significant data from git itself. After giving git some breathing room (as gc will need a little wiggle room to copy data to new files as it works), git gc will compact your git repository as much as is possible without losing your repository's history.

like image 193
Matt Avatar answered Oct 12 '22 12:10

Matt