Sunday, November 30, 2014

Push changes to a remote repository using Git Bash

Push is the stage where the changes from the local repository get moved to the remote repository, once the changes are committed to the local repository push command will push the changes to the remote repository.

Changes in local working copy -> Stage -> Commit -> Push changes to remote repository

The following steps push the changes from the local repository to the remote repository using Git Bash commands

1.    Open Git Bash
2.    Navigate to the working folder in which the changes to be committed are to be done using the cd command.
cd c:\\GitWorkingFolder\\documents
3.    Make sure that changes to be pushed to remote are staged and committed.
4.    Once committed use the “git push ” command to push the changes to the remote repository. Enter the remote repository password if prompted.

5.    Once pushed, the changes are available in the remote repository and the other users can pull the changes to their local repository.




Search Flipkart Products:
Flipkart.com

No comments: