How can I display the current branch and folder path in terminal?

It’s not about a plugin. It’s about prompt tricks in the shell. For a cool setup in bash, check out the dotfiles project of this guy: To get a fancy prompt, include the .bash_prompt in your ~/.bash_profile or ~/.bashrc. To get the exact same prompt as in your question, change the export PS1 line at the end of .bash_prompt like this: I ended up using all … Read more

Delete branches in Bitbucket

If the branches are only local, you can use -d if the branch has been merged, like If the branch contains code you never plan on merging, use -D instead. If the branch is in the upstream repo (on Bitbucket) you can remove the remote reference by Also, if you’re on the Bitbucket website, you can remove branches you’ve … Read more

Move existing, uncommitted work to a new branch in Git

Update 2020 / Git 2.23 Git 2.23 adds the new switch subcommand in an attempt to clear some of the confusion that comes from the overloaded usage of checkout (switching branches, restoring files, detaching HEAD, etc.) Starting with this version of Git, replace the checkout command with: The behavior is identical and remains unchanged. Before Update 2020 / Git … Read more