I made git init on the remote server via putty, added a remote repository, I pull and the master branch is pulled. And we need another specific branch. How to set it?

This is what's in the git config file.

[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "engage.dev"] url = https://github.com/my_repository/repo.git fetch = +refs/heads/*:refs/remotes/engage.dev/* 

    2 answers 2

    so that the master does not draw

     git pull origin твояветка 
    • for my case, git pull engage.dev engage.dev as it turned out. :) Thank. - white-imp

    enter git branch -a and look at the branches that git knows about. They will look like this somewhere.

     remotes/origin/branch_1 remotes/origin/branch_2 remotes/origin/branch_3 

    then write git checkout branch_3 and everything will be.

    • git branch -a does not write me anything, alas. after executing the command displays the prompt string. - white-imp
    • show engage engage.dev git remote shows me engage.dev new (next)