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

Fix mirror - take 2 #4999

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Fix mirror - take 2 #4999

merged 1 commit into from
Jan 24, 2025

Conversation

louischan-oursky
Copy link
Collaborator

No description provided.

# But that command will just result in "Everything up-to-date".
# So I change GitHub actions to exclude the branch "HEAD" instead.
# At least we will not receive a GitHub actions error saying HEAD is not a valid branch name.
git push --tags --force --prune mirror "refs/remotes/origin/*:refs/heads/*"
Copy link
Contributor

@tung2744 tung2744 Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about simply git push --all?
https://git-scm.com/docs/git-push#git-push---all

And git push --tags should push all tags
https://git-scm.com/docs/git-push#Documentation/git-push.txt---tags

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--all and --tags are mutually exclusive, as seen in the SYNOPSIS

git push [--all | --branches | --mirror | --tags]

@tung2744 tung2744 merged commit 269704d into main Jan 24, 2025
25 of 26 checks passed
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.

2 participants