Hi expert,
now I'm in the branch A, I want to copy some file from branch B to A
any help?
Lei
--
On Monday, December 17, 2012 1:58:53 PM UTC+1, lei yang wrote:
Hi expert,
now I'm in the branch A, I want to copy some file from branch B to A
any help?
You have to commit changes in the current branch, so you have to switch
first to the branch where you want to add and commit the
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
On Mon, 17 Dec 2012 04:58:53 -0800
lei yang yanglei.f...@gmail.com wrote:
now I'm in the branch A, I want to copy some file from branch B to A
any help?
Note that the already proposed
git checkout $branch -- $filename
git add $filename
approach does not copy the file's history recorded in
Thanks for the tips, I have another question, If I forget branch B
files' path, how chould I do without switch to B
Lei
On Mon, Dec 17, 2012 at 6:18 AM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
On Mon, 17 Dec 2012 04:58:53 -0800
lei yang yanglei.f...@gmail.com wrote:
now
On Monday, December 17, 2012 3:22:26 PM UTC+1, lei yang wrote:
Thanks for the tips, I have another question, If I forget branch B
files' path, how chould I do without switch to B
You can explore the contents of other branches easily in any Git GUI tool.
Or you can use command line:
git
You can use the option -r in git ls-tree to show all files from a branch:
git ls-tree -r B
With that, you can use a grep to find the file you are searching.
William Seiti Mizuta
@williammizuta
Desenvolvedor da Caelum
On Mon, Dec 17, 2012 at 12:27 PM, Thomas Ferris Nicolaisen
On Sun, 16 Dec 2012 22:18:51 -0800 (PST)
Thomas Ferris Nicolaisen tfn...@gmail.com wrote:
[...]
Is there anything comparable for Git that I can pull from NuGet or
some other source?
Libgit2 http://libgit2.github.com/ has bindings in
C#https://github.com/libgit2/libgit2sharp. It's also