Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add git-pull-all command #556

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nicolaiskogheim
Copy link
Collaborator

Track working directories once, and then use git pull-all to pull each repository in one go later.

This is just #77 rebased onto master. The only edits I did was remove trailing whitespace.

I don't think I would use this command, but a couple of guys showed interest in the comments.
If anyone has thoughts on whether git pull-all should be included or not, please share.

I haven't reviewed or tested the code, hence the WIP label, but I will after we've decided to take it in. If we do, that is.

Track working directories once, and then use `git pull-all` to pull each repository
in one go later. May be useful?
@qw3rtman
Copy link
Collaborator

Just to clarify, does this pull all branches from remote?

@hughsk

@nicolaiskogheim
Copy link
Collaborator Author

does this pull all branches from remote?

No.

There are two cases:

  1. if $# -eq 0 then git pull in each repository
  2. else git pull "$@", which means you can give arguments, but passing in branch names wouldn't make sense, except when you want to only pull the master branch in every repo.

@qw3rtman
Copy link
Collaborator

My bad, I should have looked at the man page in this PR.

This looks like a useful feature to me (especially for those who keep all their repositories in a central directory).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants