getting branch from remote Repo to local Repo

General Discussions
Post Reply
Mohammedaln
Posts: 10
Joined: Sat Nov 02, 2019 3:41 pm

getting branch from remote Repo to local Repo

Post by Mohammedaln » Sun Aug 16, 2020 10:53 am

Code: Select all


>> bench get-app --branch stable-branch https://dev01.open-alt.com/open-alt/erpnext.git
>> cd app/erpnext
>> git remote rename upstream origin


    git config --unset-all remote.origin.fetch &&
    git config --add remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' &&
    git fetch origin branch_name &&
    git checkout develop-branch  &&
    git merge origin/branch_name
    
    

Post Reply