git clean up local branches

Also I wanted a simple one-liner that just uses git or other simple CLI tools rather than writing custom scripts. My local dev branches.


Clean Up Your Local Branches After Merge And Delete In Github

The git remote command offers such utility.

. The most common use case for bare repo is to create a remote central Git repository. Configuration set up. Git fetch originfeature-1my-feature will mean that the changes in the feature-1 branch from the remote repository will end up visible on the local branch my-feature.

Like git push git fetch allows us to specify which local and remote branch do we want to operate on. I did not want to delete local branches that were never set up to track a remote branch ie. Git config Once you have a remote repo setup you will need to add a remote repo url to your local git config and set an upstream branch for your local branches.


How To Clean Up Git Branches Devconnected


Delete Git Local And Remote Branches Techie Delight


A Simple Way To Clean Up Your Git Project Branches By Florent Destremau Medium


How Do I Delete A Branch Locally And Remotely In Git O Reilly


How To Clean Up Git Branches Devconnected


Version Control How Do I Delete A Git Branch Locally And Remotely Stack Overflow


How To Clean Up Git Branches Git Clean Up Local And Remote Branches Junos Notes


A Simple Way To Clean Up Your Git Project Branches By Florent Destremau Medium

0 comments

Post a Comment