How to push a file or folder to the remote branch using 'git push'

AuthorHariom Prajapati

Pubish Date20 Aug 2022


In this tutorial we will see how to push locally commited files or folders to the remote branch using git push.

git push always push locally committed files or folder to selected branch.

Note: Always check status of edited file or folder and current selected branch using git status. We will learn how to create new branch or how to switch existing branch using git checkout in another tutorial.


Push all commited file or folder to the remote branch using git push

git push origin selected_branch_name

Git Push

After this your file or folder pushed to the remote branch.

Comments 0

Leave a comment