How to pack all loose objects in Git?

I have a bare git repository with some loose objects. How do I pack all loose obects into a single, new pack, without changing other packs?

Answers


git pack-objects < object_list.txt

where object_list.txt has a list of object hashes, delimited by '\n'.

git-pack-objects


Need Your Help

Use of option helper in Play Framework 2.0 templates

scala playframework-2.0

I'm trying to use views.html.helper.select (documentation here). I don't know scala, so i'm using java. I need to pass object of type Seq[(String)(String)] to the template right? Something like:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.