Files & Projects
Commit Changes and Create a Pull Request
By TermSquad · Last reviewed
Use Git in the TermSquad terminal to save project changes, and GitHub CLI to open a pull request. Review the actual diff before recording or publishing work made by an agent.
Prepare a branch and inspect changes
In your repository, check the current branch and working tree:
git status
git diff
If you are starting a new change, create a branch with a suitable unused name:
git switch -c docs/clarify-setup
Run the relevant project checks. If Git asks for an author identity, configure your name and email for this repository before committing.
Commit the intended files
Replace the example path with the file you reviewed:
git add README.md
git diff --cached
git commit -m "Clarify project setup"
Inspect the staged diff so unrelated files and secrets do not enter the commit. A local commit does not publish the change to GitHub.
Push and open a pull request
When you are ready to share the branch:
git push -u origin docs/clarify-setup
gh pr create
Follow the prompts to select the correct base branch and enter a title and description. Explain the behavior change and the checks you ran. The GitHub CLI pull-request reference describes the available options.
Opening a pull request does not merge it. Review repository checks and follow your project’s review process.
