GW-HIVE / biomuta-old

Documentation: https://biomuta.readthedocs.io/en/latest/
0 stars 0 forks source link

github cheat sheet #15

Open mariacuria opened 1 week ago

mariacuria commented 1 week ago

Git Branching - Basic Branching and Merging

  1. git status
  2. Create a new branch and switch to it at the same time: git checkout -b hotfix
  3. Do stuff
  4. git add *
  5. Commit with a message: git commit -a -m 'Fix something'
  6. git push
  7. Switch back to master: git checkout master
  8. Deploy to production: git merge hotfix
  9. Delete the branch: git branch -d hotfix