Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github cheat sheet #15

Open
mariacuria opened this issue Nov 12, 2024 · 0 comments
Open

github cheat sheet #15

mariacuria opened this issue Nov 12, 2024 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@mariacuria
Copy link
Contributor

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
@mariacuria mariacuria added the good first issue Good for newcomers label Nov 12, 2024
@mariacuria mariacuria self-assigned this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant