PULL a project from GitHub remote branch

after checkout to the desired branch:

git checkout feature/myBranch

I want to pull the project contained in this branch to my local repository, how can i do that please.


You load the content of a remote repository by adding it as a remote and calling git fetch. That is all what needs to be done. After that, you already have the changes in your local repository, it’s just that there is no local branch pointing to them (but a remote branch like origin/branch).

When you can checkout a branch, then you already have everything in your local repository.

Need Your Help

git - delete local tracking

git git-remote

I've deleted some remote branches (dev/featureA and dev/featureB) however when I run git remote show origin I still see them being listed under the local branches section. E.g.

Rails cookie_store working on localhost but not Heroku

ruby-on-rails heroku

Using localhost, I'm able to get a cookie back upon authentication.