From git branch
it appears that somehow your local branch name is “origin”.
You can rename the branch with -mv
flag, like this:
git branch -mv origin master
After this git branch
should show master
🙂
Just to make sure the name is indeed the only thing that went astray, you can run git log
and look at the last few commits – and compare them to the last few commits on bitbucket website.
Related Posts:
- How do I delete a Git branch locally and remotely?
- How do I delete a Git branch locally and remotely?
- What does ‘–set-upstream’ do?
- What does ‘–set-upstream’ do?
- What is the difference between git push origin and git push origin master
- How do I push a new local branch to a remote Git repository and track it too?
- How do I push a new local branch to a remote Git repository and track it too?
- How do I push a new local branch to a remote Git repository and track it too?
- How do I properly force a Git push?
- GitHub: Permission denied (publickey). fatal: Could not read from remote repository
- How do you push a tag to a remote repository using Git?
- How to change the URI (URL) for a remote Git repository?
- Meaning of the GitHub message: push declined due to email privacy restrictions
- How to remove remote origin from a Git repository
- ! [rejected] master -> master (fetch first)
- Undoing a ‘git push’
- What are the differences between “git commit” and “git push”?
- What does git push origin HEAD mean?
- What does git push origin HEAD mean?
- How do I push a local Git branch to master branch in the remote?
- Git push hangs when pushing to Github?
- Git push requires username and password
- What is git tag, How to create tags & How to checkout git remote tag(s)
- Difference between “git add -A” and “git add .”
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- How to cherry pick from 1 branch to another
- How to Git stash pop specific stash in 1.8.3?
- How do I revert a Git repository to a previous commit?
- How to merge branch to master?
- What happens when I do git pull origin master in the develop branch?
- How can I switch to another branch in git?
- What is the `git restore` command and what is the difference between `git restore` and `git reset`?
- Git fetch remote branch
- Updates were rejected because the tip of your current branch is behind its remote counterpart
- git stash apply version
- Git fetch remote branch
- Updating a local repository with changes from a GitHub repository
- How do I remove a submodule?
- Git push results in “Authentication Failed”
- Git push results in “Authentication Failed”
- Download single files from GitHub
- Ignoring directories in Git repositories on Windows
- How can I merge multiple commits onto another branch as a single squashed commit?
- How do I resolve git saying “Commit your changes or stash them before you can merge”?
- How to find my GitHub username so that I can be found via the URL?
- Create Git branch with current changes
- github website publish cannot publish unborn HEAD
- The following untracked working tree files would be overwritten by merge, but I don’t care
- How do I resolve git saying “Commit your changes or stash them before you can merge”?
- How do you stash an untracked file?
- Filename too long in Git for Windows
- What is the difference between git rm –cached and git reset
? - What does git rev-parse do?
- git – pulling from specific branch
- GitHub: invalid username or password
- Why do I have to “git push –set-upstream origin
“? - How do you create a remote Git branch?
- How do I update or sync a forked repository on GitHub?
- Stash just a single file
- How do I provide a username and password when running “git clone [email protected]”?
- “*** Please tell me who you are.” when using SSH key
- master branch and ‘origin/master’ have diverged, how to ‘undiverge’ branches’?
- git pull from master into the development branch
- Clone A Private Repository (Github)
- The following untracked working tree files would be overwritten by merge, but I don’t care
- error: cannot lock ref.. ‘refs/tags’ exists; cannot create ‘refs/tags/
- Is there a “theirs” version of “git merge -s ours”?
- How to clone a specific Git tag
- Git how to clone with SSH key, username
- Heroku: How to change a Git remote on Heroku
- Updates were rejected because the remote contains work that you do not have locally
- fatal: This operation must be run in a work tree
- What’s the significance of the “No newline at end of file” log?
- Git update submodules recursively
- Do a “git export” (like “svn export”)?
- How do I set up Eclipse/EGit with GitHub?
- Repository size limits for GitHub.com
- git push origin master does not work
- How to permanently remove few commits from remote branch
- git push –force-with-lease vs. –force
- Found a swap file by the name
- Git clone verbose output?
- Could not create work tree dir ‘example.com’.: Permission denied
- How to answer the git prompt in npm init for a local repo
- failed to push some refs to [email protected]
- Git says “Automatic merge failed”, what does it mean?
- How to configure git bash command line completion?
- How do I change the default location for Git Bash on Windows?
- How to stop tracking and ignore changes to a file in Git?
- Does running git init twice initialize a repository or reinitialize an existing repo?
- Eclipse EGit Checkout conflict with files: – EGit doesn’t want to continue
- WordPress with Git
- WordPress Git Workflow Help
- WordPress and Git – What folders should I track?
- Multiple copies of the same website: how to organize code/architecture?
- Pull latest stable release via git [closed]
- Why do the Roots theme CSS files not load (404)?
- Painless way to track remote Git repo for WordPress updates
- WordPress on git – need help with configuration
- What’s is the best stack for cPanel continuous deployment?