- Check out a local working branch
git checkout -b branchname
- Edit your files
- Add files to commit :
git add .
- Commit your changes :
git commit -m "Add a meaningful comment"
- Push changes to origin:
git push origin branchname
- Create a pull request on github
- Review then merge PR
- Get back to your main branch :
git switch main
- Sync main :
git pull origin main -f
Last active
January 5, 2024 18:24
-
-
Save john-walter-munene/25cb3b9424e07732fd4e9886cf3a9fbf to your computer and use it in GitHub Desktop.
Git workflow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment