### Clone the forked repository Source: https://github.com/wmjordan/pdfpatcher/blob/v1.2/CONTRIBUTING.zh-CN.md Clones the forked repository to your local machine. Replace 'yourgithub' with your GitHub username. ```git git clone git@github.com:yourgithub/PDFPatcher.git ``` -------------------------------- ### Create a new branch Source: https://github.com/wmjordan/pdfpatcher/blob/v1.2/CONTRIBUTING.zh-CN.md Creates a new branch and switches to it. It is not recommended to use 'master' as your branch name. ```git git checkout -b your_branch ``` -------------------------------- ### Push branch to fork Source: https://github.com/wmjordan/pdfpatcher/blob/v1.2/CONTRIBUTING.zh-CN.md Pushes your branch to the forked repository. ```git git push origin your_branch ``` -------------------------------- ### Commit changes Source: https://github.com/wmjordan/pdfpatcher/blob/v1.2/CONTRIBUTING.zh-CN.md Commits all tracked changes with a clear and complete commit message. ```git git commit -a ``` -------------------------------- ### Keep branch in sync with upstream Source: https://github.com/wmjordan/pdfpatcher/blob/v1.2/CONTRIBUTING.zh-CN.md Adds the upstream repository, fetches its updates, and rebases your branch onto the latest upstream master to keep it synchronized. ```git git remote add upstream git@github.com:wmjordan/PDFPatcher.git ``` ```git git remote update ``` ```git git rebase upstream/master ``` -------------------------------- ### Force push after changes Source: https://github.com/wmjordan/pdfpatcher/blob/v1.2/CONTRIBUTING.zh-CN.md Force-pushes your branch after making changes, typically used after rebasing or amending commits. ```git git push origin your_branch -f ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.