T
T
Tyoma Makeev2015-10-08 19:16:27
git
Tyoma Makeev, 2015-10-08 19:16:27

How to make a pull branch from someone else's repository to your own?

Recently, I finally started to understand the general principles of the work of git and github, and the question arose: is it possible to pull one branch from someone else's repository into some kind of branch in my own? Suppose I want to make a blog on Jekyll and the Pixyll template , and have a repository with three main branches, the main one is the master, everything will be deployed from it, the other for my changes (I don’t know if this is a good practice, but for now I it seems easier to have one branch for changes related to the site content for example, rather than a branch for every change as some do), and finally the third is a copy of the master branch of this Pixyll template , which I want to use in order to neatly merge new versions. Tell me how to do it? ViaSourceTree failed to directly pull to the local repository from non-origin. I had to make a clone of that repository and push to my own. Could this be done in an easier way? Or maybe there are some other, more elegant options for working with projects of this kind? Forks, as far as I understand, are also an option, but I wouldn’t want to tie myself so hard to the github, I also probably would like to use bitbucket for private reps.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2015-10-08
@murmuringvoices

Add another origin and shoot from it
git remote add https://.....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question