- get particular file
git restore -s somebranch -- file.txt - git push
git push -u origin mybranch
git push -u origin my_branch:remote_branch
Want to merge branchB into branchA
git checkout branchA
git merge branchB
Join our mailing list Subscribe Us
Expert debugging tips, coding insights for software engineers. Tackle daily programming challenges with our Blog. Debug smarter, not harder!