Search This Blog

Monday, September 9, 2024

Tuesday, May 28, 2024

git commit

# Clone the repository
cd repo-name

# Add the original repository as an upstream remote
git remote -v

# Fetch and merge the latest changes from upstream
git fetch upstream
git checkout main
git merge upstream/main

# Create a new branch for the bug fix
git checkout -b bugfix-branch

# Make your code changes, then stage and commit them
git add .
git commit -m "Fix: Description of the bug fix"

# Push the changes to your forked repository
git push origin bugfix-branch