Skip to content

Commit

Permalink
Merge pull request #52340 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Sep 18, 2024
2 parents aa2bb78 + ac60b5f commit 108eb7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can avoid hitting the limit by breaking your push into smaller parts, each o
1. Push each of these commits one at a time to your {% data variables.product.prodname_dotcom %} hosted repository.

```shell
git push REMOTE-NAME <YOUR_COMMIT_SHA_NUMBER>:refs/heads/BRANCH-NAME
git push REMOTE-NAME +<YOUR_COMMIT_SHA_NUMBER>:refs/heads/BRANCH-NAME
```

If you see the message `remote: fatal: pack exceeds maximum allowed size`, reduce the step size in step 2 and try again.
Expand All @@ -52,7 +52,7 @@ Once you're familiar with the procedure, you can automate steps 2 to 4 to simpli

```shell
step_commits=$(git log --oneline --reverse refs/heads/BRANCH-NAME | awk 'NR % 1000 == 0')
echo "$step_commits" | while read commit message; do git push REMOTE-NAME $commit:refs/heads/BRANCH-NAME; done
echo "$step_commits" | while read commit message; do git push REMOTE-NAME +$commit:refs/heads/BRANCH-NAME; done
```

## Starting from scratch
Expand Down

0 comments on commit 108eb7e

Please sign in to comment.