Search code examples
gitrepositorybitbucketgit-branchgit-pull

Please help me about problem in my git branch


I can pull from another branch, but the data from another branch not updated in my branch. When i try pulled manually git pull branch_andy2 production it shows error like this :

fatal: 'branch_andy2' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.


Solution

  • Try to remove the remote repository and re-add it.

    follow the below command to remove

    git remote -v
    
    git remote remove <present remote name>
    

    after remove add back using the below command

    git remote add <remote-name> <githuburl>
    

    Then do this:

    git push origin master
    git pull
    

    I hope this answer is helped you