Git Push Pull


// Git - Push and pull:

git push -u origin originBranchName // Tell Git to associate our current local
  // branch with the specified originBranchName so that later on we do not
  // have to use the -u option again.

git pull origin master

git push origin --delete branchName // delete the specified branchName on
  // the origin repository

git push // push all the commits that we have committed in our local
    // repository to the remote "origin" repository.

git pull // pull and merge all the changes that had occurred on the remote
    // "origin" repository to our local repository
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License