Skip to content

Instantly share code, notes, and snippets.

@john-walter-munene
Last active January 5, 2024 18:24
Show Gist options
  • Save john-walter-munene/25cb3b9424e07732fd4e9886cf3a9fbf to your computer and use it in GitHub Desktop.
Save john-walter-munene/25cb3b9424e07732fd4e9886cf3a9fbf to your computer and use it in GitHub Desktop.
Git workflow

Git workflow

  1. Check out a local working branch git checkout -b branchname
  2. Edit your files
  3. Add files to commit : git add .
  4. Commit your changes : git commit -m "Add a meaningful comment"
  5. Push changes to origin: git push origin branchname
  6. Create a pull request on github
  7. Review then merge PR
  8. Get back to your main branch : git switch main
  9. Sync main : git pull origin main -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment