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

Git: push dev branch, merge into master, push master to origin, go back to dev #25

Open
Booligoosh opened this issue Apr 9, 2019 · 0 comments
Assignees
Labels
dailyhack This issue belongs to dailyhack.xyz fun trick

Comments

@Booligoosh
Copy link

I use this command super often, basically whenever I want to push a new feature for KanbanMail to production. It pushes my dev branch, goes to master, merges my dev branch, pushes it, then goes back to my dev branch. Here my two main branches are called master and dev, but you could change it to whatever you want.

git checkout dev && git push && git checkout master && git merge dev && git push && git checkout dev
@mddanishyusuf mddanishyusuf added coolhack This trick is cool dailyhack This issue belongs to dailyhack.xyz helpful fun trick and removed helpful coolhack This trick is cool labels Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dailyhack This issue belongs to dailyhack.xyz fun trick
Projects
None yet
Development

No branches or pull requests

2 participants