Hi all,
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?
Kind regards
jatin
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.