From: Thomas Anderson <zelnaga@gmail.com>
To: git@vger.kernel.org
Subject: updating github.com forks, developing in remote branches and svn:eol-style equiv?
Date: Sun, 28 Mar 2010 01:32:51 -0500 [thread overview]
Message-ID: <15b345f1003272332u2f4d38ear5c8aeef9b35f5037@mail.gmail.com> (raw)
Say on github.com I fork a repository. Two weeks later, updates have
been made to the original repository and now I want to update my fork.
How do I do this?
One possibility that occurs to me: I can create a new remote
repository - let's say "upstream" - with the URL of the original
repository and I can pull from that instead of the forked "origin"
repository. I can then push the updates to the forked repository.
Is that the best way to do it, though? It seems to me that I ought to
be able to have my github.com fork pull updates itself without my
having to pull and push with my own local repo.
Also, I'm unclear how to develop in remote branches. If I go to the
"Switch/Checkout..." dialog I can switch to, say,
"remotes/origin/random-branch". I do that, make some changes to one
of the new files and I then try to push those changes back. In the
local drop down menu I only see two local branches, however - "(no
branch)" and the default branch. Why is that? If I just switched the
branch to, say, "remotes/origin/random-branch", shouldn't I now be
seeing that branch locally?
Finally, is there any Git equivalent to SVN's svn:eol-style and if so
how do I take advantage of it?
next reply other threads:[~2010-03-28 6:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-28 6:32 Thomas Anderson [this message]
2010-03-28 7:25 ` updating github.com forks, developing in remote branches and svn:eol-style equiv? Alexander Iljin
2010-03-28 17:07 ` Thomas Anderson
2010-03-28 17:42 ` Alexander Iljin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15b345f1003272332u2f4d38ear5c8aeef9b35f5037@mail.gmail.com \
--to=zelnaga@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).