dev-resources.site
for different kinds of informations.
Como enviar somente novos commits em uma branch que já mesclada.
Published at
1/7/2025
Categories
git
github
Author
wesleywcr
Author
9 person written this
wesleywcr
open
Ao trabalhar no desenvolvimento de software é normal ter alguns problemas para subir nosso código para codebase, neste artigo vou deixar uma dica de como enviar somente os novos commits que você fez em uma determinada branch que já foi mesclada em outra.
Nesse caso você pode ajustar seu Pull Request para conter apenas seus novos commits fazendo o seguinte:
- Navegue e atualize sua branch local:
git checkout main # branch em que mesclou seu Pull Request
git pull origin main
- Volte para sua branch em que criou seu Pull Request:
git checkout minha-branch
- Faça o rebase:
git rebase main
- Force o push:
git push --force
E pronto sua branch de Pull Request vai trazer somente os novos commits que ainda não foram mesclados na sua branch principal.
git Article's
30 articles in total
🛡️ Security Measures: Safeguarding Your Codebase 🔒
read article
Unlock Your Coding Potential with the GitHub Copilot Global Bootcamp!
read article
Kickstart Your Developer Journey: A Beginner’s Guide to Software Development Success
read article
Git Commands Every Developer Must Know 🔥
read article
check out this!
read article
Git Merge VS Git Rebase: Which One Should YOU Use?
read article
A quick and simple guide on how to make branches for open-source development
read article
Improving Your Productivity With Git Worktrees
read article
GitHub Makeover: Create a Profile README That Stands Out and Connects! 👨💻
read article
How to Fix Git Issues: Committing and Pushing Without Pulling Causes Stuck Branches
read article
Undo Mistakes in Git: Revert, Reset, and Checkout Simplified
read article
My First npm Package!
read article
Mastering Git and GitHub: A Guide for New Team Members
read article
GIT hack: Sort and show recent branches
read article
GIT
read article
🎉 Simplify Laravel CRUD Operations with Ease! 🚀
read article
Why I Stopped Using Plain Git Pull (And Why You Should Too)
read article
Why I Built commit-ai: A Story About Git Security and Team Safety
read article
How to Link git to GitHub via SSH on Windows
read article
I built Zeet. A Git-like version Control System
read article
Effective Git Branch Merging for Teams 🚀
read article
Mastering Git Workflows: Beyond Basic Commands
read article
Como enviar somente novos commits em uma branch que já mesclada.
currently reading
Getting Git to Work on Apple Silicon
read article
Git avanzado: ¿Qué es cherry pick? 🍒
read article
Git Cheatsheet that will make you a master in Git !
read article
How to upgrade Git to latest version on macOS
read article
Windows dotted paths
read article
Using git Conditionals to Manage Your Git Identities
read article
Can a Python Server (Serving HTML with Jinja2) Interact and Modify Files in a Jenkins Pipeline?
read article
Featured ones: