Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Git: How to pull from a remote branch where the name of branch has changed

  • 10-03-2020 2:01pm
    #1
    Registered Users, Registered Users 2 Posts: 5,659 ✭✭✭


    New scenario for me. How do i get it to "know" to get the new branch name


Comments

  • Registered Users, Registered Users 2 Posts: 27,370 ✭✭✭✭GreeBo


    Has the branch changed or the project?
    If its just then branch then you would just checkout the new branch name?


  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    git branch -r


  • Registered Users, Registered Users 2 Posts: 2,040 ✭✭✭Colonel Panic


    That just lists the remote branch.

    If you're talking about tracking a new remote branch to an existing one with the "old" name, you can track a new remote branch using

    git branch -u remote_name/branch_name

    Also, git branch help lists this stuff!


  • Registered Users, Registered Users 2 Posts: 3,170 ✭✭✭antimatterx


    Just switch branch?


  • Registered Users, Registered Users 2 Posts: 6,262 ✭✭✭Buford T Justice


    git branch --set-upstream <remote-branch>


  • Advertisement
Advertisement