Git: How do I keep update with a specific branch? -


question 1 if have not yet created git repo locally, , need first time sync specific branch.

question 2 if local folder git in sync master, , want sync branch ?

  1. if don't have local repo, have nothing. first have clone remote repository using git clone <remote_repo_url>.
  2. if want start developing on different branch, if name of branch branch_name, execute command git checkout branch_name. note assumes branch exists on local repository. if exists on remote repository, run command git fetch --all pull remote branches onto local branch.

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -