Step-by-step GitHub workflow! #193974
otaviovicario
started this conversation in
A Welcome to GitHub
Replies: 1 comment
-
|
🆙 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Verification Help & Guidance
Hi everyone,
🚀 Welcome!
I prepared a step-by-step GitHub workflow you can follow to commit changes, open a Pull Request, merge it, and clean up the branch afterwards:
1. Switch to the correct branch
git checkout branch-name2. Check what changed (optional but recommended)
git status3. Stage all changes
git add .4. Commit your changes
git commit -m "Describe what you did"5. Push the branch to GitHub
git push origin branch-name6. Open the Pull Request (PR) on GitHub
7. Merge the PR on GitHub
8. Switch back to main branch
git checkout main9. Pull the latest updates from GitHub main
git pull origin main10. Delete the local branch
git branch -d branch-name11. Delete the remote branch on GitHub
git push origin --delete branch-nameDo you follow the same flow, or is there something you usually add or do differently? 💻
Beta Was this translation helpful? Give feedback.
All reactions