Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

git-pack-redundant(1) [linux man page]

GIT-PACK-REDUNDANT(1)						    Git Manual						     GIT-PACK-REDUNDANT(1)

NAME
git-pack-redundant - Find redundant pack files SYNOPSIS
git pack-redundant [ --verbose ] [ --alt-odb ] < --all | .pack filename ... > DESCRIPTION
This program computes which packs in your repository are redundant. The output is suitable for piping to xargs rm if you are in the root of the repository. git pack-redundant accepts a list of objects on standard input. Any objects given will be ignored when checking which packs are required. This makes the following command useful when wanting to remove packs which contain unreachable objects. git fsck --full --unreachable | cut -d ' ' -f3 | git pack-redundant --all | xargs rm OPTIONS
--all Processes all packs. Any filenames on the command line are ignored. --alt-odb Don't require objects present in packs from alternate object directories to be present in local packs. --verbose Outputs some statistics to stderr. Has a small performance penalty. SEE ALSO
git-pack-objects(1) git-repack(1) git-prune-packed(1) GIT
Part of the git(1) suite Git 1.8.5.3 01/14/2014 GIT-PACK-REDUNDANT(1)

Check Out this Related Man Page

GIT-PACK-REDUNDANT(1)						    Git Manual						     GIT-PACK-REDUNDANT(1)

NAME
git-pack-redundant - Find redundant pack files SYNOPSIS
git pack-redundant [ --verbose ] [ --alt-odb ] < --all | .pack filename ... > DESCRIPTION
This program computes which packs in your repository are redundant. The output is suitable for piping to xargs rm if you are in the root of the repository. git pack-redundant accepts a list of objects on standard input. Any objects given will be ignored when checking which packs are required. This makes the following command useful when wanting to remove packs which contain unreachable objects. git fsck --full --unreachable | cut -d ' ' -f3 | git pack-redundant --all | xargs rm OPTIONS
--all Processes all packs. Any filenames on the command line are ignored. --alt-odb Don't require objects present in packs from alternate object directories to be present in local packs. --verbose Outputs some statistics to stderr. Has a small performance penalty. SEE ALSO
git-pack-objects(1) git-repack(1) git-prune-packed(1) GIT
Part of the git(1) suite Git 2.17.1 10/05/2018 GIT-PACK-REDUNDANT(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with xargs

Hi there, I am trying to move around 3000 files from one directory to another. The mv command is complaining from too many arguments. I tried to use the xargs command but with no luck. Could some body provide help? Regards (4 Replies)
Discussion started by: JimJim
4 Replies

2. Shell Programming and Scripting

sed or an awk script should help

num desc ind code 11 hi,feather y food 121 edible,oil y food 100 meal-pack y food 010 health,prod 120 ... (5 Replies)
Discussion started by: thumsup9
5 Replies

3. UNIX for Dummies Questions & Answers

is /. superfluous? why not just say / ?

is /. superfluous? why not just say / ? I can see a use for . on its own. But /. seems superfluous/redundant. I'm guessing it must have some good reason, there's a whole website named after it!! (5 Replies)
Discussion started by: james hanley
5 Replies

4. UNIX for Advanced & Expert Users

xargs documentation or tutorial?

Can anybody please forward me a good xargs documentation or tutorial? - $nilesh (5 Replies)
Discussion started by: ynilesh
5 Replies

5. Shell Programming and Scripting

xargs and gnuplot

Hi All, Seems I have an xargs stdin problem that I don't understand. I have a script (call it myscript.sh) that takes the names of one or more file(s) specified on the command line and creates a single gnuplot command file containing multiple records, one for each specified file. Each of... (9 Replies)
Discussion started by: paulianna2002
9 Replies

6. Shell Programming and Scripting

shuffle pack of words in line

hello i just seeking for a simple way to make a shuffle by block of words in a line. no matter shell (sh/bash) or perl should be like this: the message (which is line of some file) splits to packs (packs are random 5-10 words in each) then making a new line inserting those packs in a random... (9 Replies)
Discussion started by: tip78
9 Replies

7. Shell Programming and Scripting

Eliminate redundant data pairs

Hello Experts: I appeal to you to see if you can help me with a small problem. I have a .log file where there is data in two columns (separated by a space). The file is thus: 0.0 3 0.0 6 0.0 6 0.0 6 0.0 7 0.0 7 0.0 7 0.0 7 0.0 11 0.0 11 0.0 11 0.0 11 0.0 11 0.1 17 (6 Replies)
Discussion started by: Flamex
6 Replies

8. Shell Programming and Scripting

piping problem with xargs

I'm trying to pipe the output from a command into another using xargs but is not getting what I want. Running this commands: find . -name '33_cr*.rod' | xargs -n1 -t -i cut -f5 {} | sort -k1.3n | uniq | wc -l give the following output: cut -f5 ./33_cr22.rod cut -f5 ./33_cr22.rod ... 9224236... (7 Replies)
Discussion started by: ivpz
7 Replies

9. Shell Programming and Scripting

Doubt in xargs command

Hi, What is the difference in capitalizing the option 'i' of xargs command, (i.e) xargs -i and xargs -I? Also, what is the difference between the below 2 commands? output_from_cmd | xargs -I {} grep '{}' file output_from_cmd | xargs -I grep '{}' file Any efficiency or performance... (4 Replies)
Discussion started by: royalibrahim
4 Replies

10. AIX

GIT issue in AIX 6.1

Hello, I recently installed GIT 1.8.1 on my AIX 6.1 machine referring to AIX Open Source Packages | Main / git website and am facing a few issues with it. Now if I login as root and issue git commands like git --version I get the response as shown : git version 1.8.1And I have tried creating... (4 Replies)
Discussion started by: gaugeta
4 Replies

11. Red Hat

[Solved] Cannot install git on RHEL 6

Hi, I am trying to install git on RHEL 6. From the research I have done I should be able to just say: sudo yum install git but it is not working (it says no package git is available). I am fairly new to linux and cannot figure this out. Thanks for any help you can provide. (7 Replies)
Discussion started by: dsabol
7 Replies

12. Shell Programming and Scripting

How to copy files from one location to another using xargs??

Hello Experts, I need to copy files from one location to another using xargs. Tried something like this (In Ubuntu & Solaris ). mkdir -p 1234; find /home/emd/Desktop/n007/M007/ -type f -name "A2014*" | xargs -0 cp -r {} /home/emd/Desktop/1234 But every time i run this, a weird error... (6 Replies)
Discussion started by: Saidul
6 Replies

13. Proxy Server

First time AIX: question about updates

On HP_UX i download the patches and then install with swinstall On AIX,i found "service packs" but there are many,i have to install all service packs,or the latest is ok? Thanks (5 Replies)
Discussion started by: Linusolaradm1
5 Replies

14. UNIX for Beginners Questions & Answers

Piping commands using xargs

Need help in piping commands using xargs I have several .tar.gz files that I need to list the folder content in a subdirectory. For example, a.tar.gz b.tar.gz c.tar.gz The following command works great for each .tar.gz file but it's a pain to run the tar command for each file. tar -tf... (11 Replies)
Discussion started by: april
11 Replies

15. Shell Programming and Scripting

Understanding Xargs

I'm struggling to understand the man page entry about xargs in conjunction with the option -I. It states: And the description reads: Am I correct interpreting that as the fact that if no specified otherwise xargs -I can pass to a command following it no more than 5 arguments (a.k.a... (10 Replies)
Discussion started by: scrutinizerix
10 Replies