git checkout B -- somefile
On Mon, Dec 17, 2012 at 7:58 AM, lei yang yanglei.f...@gmail.com wrote:
Hi expert,
now I'm in the branch A, I want to copy some file from branch B to A
any help?
Lei
--
--
Rick DeNatale
Google+: +Rick DeNatale https://plus.google.com
to master in his
local repo. So that stash will only save any uncommitted changes since the
last commit.
I believe that my suggestion will leave him in the same state as if he had
started the branch at the 'right' time in the past.
--
Rick DeNatale
Google+: +Rick DeNatale https://plus.google.com
Siwiński
http://siwinski.info
Wysłano z telefonu.
10-09-2012 17:22, Rick DeNatale rick.denat...@gmail.com napisał(a):
On Mon, Sep 10, 2012 at 8:55 AM, Łukasz Siwiński lsiwin...@gmail.comwrote:
Hmm...
Local Repo 12 commits ahead of origin/master
means, that You haven't pushed your last 12
(5)
Next we tell the new branch to merge changes to the right branch on origin
(6) Note this remote branch won't exist yet.
Finally we checkout the new local branch(7) and push it to the remote repo.
--
Rick DeNatale
Google+: +Rick DeNatale https://plus.google.com/10254117893106790
Blog: http
to use as a treeish. A branch is
really just in effect a variable pointer to a commit.
http://www.scribd.com/doc/65739673/12/The-Treeish#outer_page_41 et. seq.
(see page 42)
--
Rick DeNatale
Google+: +Rick DeNatale https://plus.google.com/10254117893106790
Blog: http
(linear here to simplify, with parents to the left
and children to the right
a(v0.1) b c d(v1.1) e
Then git tag --contains x
will return v0.1 AND v1.1 if x is d or e
and v0.1 if x is any of a, b, or c.
Note that not ever commit has a tag.
--
Rick DeNatale
Google+: +Rick DeNatale https
-users@googlegroups.com.
To unsubscribe from this group, send email to
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
for news and information for professionals.
Which was no doubt achieved by spamming new-groups with irrelevant posts.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick
or no
branch at all.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
--
You received this message because you
.git/HEAD is exactly where git stores the notion of the curent branch
if it contains something like
ref: refs/heads/master
Then the current branch is master
If it just contains a sha then HEAD is detached and there IS no current branch.
Which was my point.
--
Rick DeNatale
Blog: http
format.
ls -1 .git/refs/heads
Note that it's dash one, not dash ell
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com
.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
--
You received this message because you are subscribed
this. I use the grb ruby gem to
handle tasks like this and this is how it approaches renaming a remote
branch.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
or ...
But I guess there's no reason why you couldn't do that.
HTH
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
On Thu, Apr 15, 2010 at 6:45 PM, Charles Manning
mannin...@actrix.gen.nz wrote:
On Friday 16 April 2010 01:15:42 Rick DeNatale wrote:
On Thu, Apr 15, 2010 at 12:59 AM, Charles Manning
mannin...@actrix.gen.nz wrote:
Hi All
I have an issue that I think I can resolve in a messy way, but I
to git-us...@googlegroups.com.
To unsubscribe from this group, send email to
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com
On Wed, Mar 31, 2010 at 12:11 PM, vfclists vfcli...@googlemail.com wrote:
On Mar 31, 4:20 pm, Rick DeNatale rick.denat...@gmail.com wrote:
Is this what you are looking for?
http://www.gitready.com/beginner/2009/01/19/ignoring-files.html
Using .gitignore is something I have considered
to a current release, the I tag it and push the tag.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
--
You received this message because you
On Fri, Nov 27, 2009 at 1:58 PM, Konstantin Khomoutov
khomou...@gmail.com wrote:
On Nov 27, 9:51 pm, Rick DeNatale rick.denat...@gmail.com wrote:
Some branches in git are tracking another branches (for example,
usually master tracks origin/master). Let's assume, that in my work-
flow i don't
--mirror to another?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
--~--~-~--~~~---~--~~
You
file_1 is disappeared.
Can I find it?
It should be on the branch
git checkout branch_1
and the file should be in your working set.
Now if you want to merge the changes back to master:
git checkout master
git merge branch_1
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter
21 matches
Mail list logo