git push local branch commit to remote branch

git checkout -b battery_modes
git branch --set-upstream-to=remotes/origin/feature/LINUX-395-develop-battery-kernel-interface-for-custom-charge battery_modes

[pyuan@workstation linux_dell]$ git branch -a

  • battery_modes
    master
    remotes/origin/HEAD -> origin/master
    remotes/origin/LINUX-312-build-tiny-linux-image
    remotes/origin/LINUX-395-develop-battery-kernel-interface-for-custom-charge
    remotes/origin/feature/LINUX-395-develop-battery-kernel-interface-for-custom-charge
    remotes/origin/feature/battery_control
    remotes/origin/master

git push origin HEAD:feature/LINUX-395-develop-battery-kernel-interface-for-custom-charge

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章