You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I wanted to checkout a remote branch (created by someone else) into my local repository.
I made a silly mistake, and used git checkout -b, with the same name as the remote branch, which means I have created a local branch that already exists remotely....
Of course, with I try to push my changes to this branch, it is clashing.
Here is output of git branch -v -a:
master d93be71 minor edits to check scratch usage script
* remotes/origin/feature/workflow_scripts_cmip6_filename_fixes 8a913a1 fixing all job names in WRF part
remotes/origin/feature/workflow_scripts_cmip6_filename_fixes c33ace9 branch testing
remotes/origin/master d93be71 minor edits to check scratch usage script
You will see that there are two branches with exactly the same name.....What is the best way to fix this? any thoughts?