Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

git-pack-redundant(1) [xfree86 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)

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 1.7.10.4 11/24/2012 GIT-PACK-REDUNDANT(1)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating multiple sessions

I have a program which gets an input file (which contain a list of objects) and processes the objects one by one sequentially. However when there are many objects it is faster to split the input into smaller lists and run the program in multiple terminal sessions simultaneously. I want to know if... (2 Replies)
Discussion started by: stevefox
2 Replies

2. UNIX for Advanced & Expert Users

Or command

I am having trouble with an Or command in my UNIX script. It is as follows: The run never fails even if I put one not beginning with LETT or PACK. The holdfile is correct and putting out the right result and the dan.txt is also right stripping the first 4 characters off each file name. Any... (2 Replies)
Discussion started by: Dolph
2 Replies

3. Shell Programming and Scripting

why we use xargs..

hi , can anyone help me by saying why we use xargs.. is it acing like a place holder..? thanks, Krips. (3 Replies)
Discussion started by: kripssmart
3 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

Count words on each line in file using xargs

Hi, im having a problem with xargs, i want to cout word of each line in file, and i HAVE to use xargs, i tried: cat file | xargs wc -w .....that uses all words in file like name of files and passed then to wc so it worte wc :somewordformfile is not i afile or directory cat file | xargs -I{} wc... (3 Replies)
Discussion started by: Qwetek
3 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

Pipe to "xargs rm" : filename with spaces

Hi all, Am piping a list of files to "xargs rm -v". The files may have spaces in their names. Please advise how do i deal with it... :confused: Thanks. (3 Replies)
Discussion started by: coolatt
3 Replies

9. 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

10. 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

11. 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

12. 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

13. Shell Programming and Scripting

Help required with xargs to use sqlplus

Hello All, I have a requirement in which i need to run few Oracle sql files in parallel. I want to use xargs command to achieve parallelism. I tried below command: cat x|xargs -n 1 -P 5 sqlplus -s $usr/$pwd@$Host @{} File x has the list of sql files to be executed. I am getting the... (3 Replies)
Discussion started by: vikas_trl
3 Replies

14. Red Hat

Git command

trying to add git link to my computer as root and getting error message git clone https://github.com/xxxxxxx/xxxxx.sh bash: git: command not found Please use CODE tags as required by forum rules! (3 Replies)
Discussion started by: DOkuwa
3 Replies

15. 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