Page 1 of 1

getting branch from remote Repo to local Repo

Posted: Sun Aug 16, 2020 10:53 am
by Mohammedaln

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