[git-users] git repo with sparseCheckout still pushes everything to remote

2016-02-21 Thread Xi Shen
I cloned part of a git repo from *repo1*

cd my-repo
git init
git remote add -f upstream ...

Then I set up sparseCheckout, and the local directory only contains the 
directory I want.
Then I added another remote

git remote add new-repo ...
git push -u new-repo master

Even though the local only contains the files I want, the last command 
still pushes everythin from upstream to my new-repo.

How can I make git only push what is at my local repo?


Thanks,
David


-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Is it possible to edit unpublished commit?

2016-01-07 Thread Xi Shen
Hi,

I know some tricks like "rebase" and "tree-filter" that can modify the
commit history.

I want know if I can also go back to history and edit the content. So when
I push my changes, the history looks perfect :)


Thanks,
David

-- 

Regards,
David

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Re: Is it possible to edit unpublished commit?

2016-01-07 Thread Xi Shen
"git rebase -i" with "edit" command is to powerful to handle :)


On Fri, Jan 8, 2016 at 2:36 PM Xi Shen <davidshe...@gmail.com> wrote:

> Hi,
>
> I know some tricks like "rebase" and "tree-filter" that can modify the
> commit history.
>
> I want know if I can also go back to history and edit the content. So when
> I push my changes, the history looks perfect :)
>
>
> Thanks,
> David
>
> --
>
> Regards,
> David
>
-- 

Regards,
David

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Re: git subtree pull

2014-04-29 Thread Xi Shen
Hi both,

Hope this post can help you
http://stackoverflow.com/questions/5904256/git-subtree-merge-into-a-deeply-nested-subdirectory:)



On Wed, Apr 30, 2014 at 2:09 AM, Daniel Gómez Rico 
danielgomezr...@gmail.com wrote:

 The same thing happens to me.

 Em quarta-feira, 28 de agosto de 2013 15h26min27s UTC-3, Jon Mullen
 escreveu:

 I have a repository named bar.  I added a sub repository using the
 following subtree command.

 git subtree add --squash -P foodir/ foo master

 I then pushed these changes to bar.  A few days ago I made changes to the
 foo repository and I am now trying to pull them into the bar repository
 using the following command.

 git subtree pull --squash -P foodir/ foo master

 However, at the end I receive an error that says the following.

 Fatal: entry not found in tree (Some SHA number)

 Does anyone have a clue to what I am doing wrong?

  --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Regards,
David Shen

http://about.me/davidshen
https://twitter.com/#!/davidshen84

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Re: [git-user][SOLVED] always have modified file in my git repo

2009-12-16 Thread Xi Shen
my fault ;)
core.autocrlf was accidentally set to true.


On Wed, Dec 16, 2009 at 6:31 PM, Xi Shen davidshe...@googlemail.com wrote:
 hi,

 i just pulled from a upstream repo to my local repo, then i use git
 status to check my repo, and i found many UN-tracked modified files. i
 tried to use hard reset or checkout, but those files are still there.
 very weired.

 i am using msysgit on win7. i am not sure if it is a os issue.


 --
 Best Regards,
 David Shen

 http://twitter.com/davidshen84/
 http://meme.yahoo.com/davidshen84/




-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/

--

You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email 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.




[git-users] Re: how to view git repo in web page under windows?

2009-09-27 Thread Xi Shen

yeah, i said i am planing to use iis7, which supports fastcgi.
thanks.


On Sun, Sep 27, 2009 at 9:59 AM, Michael P. Soulier
msoul...@digitaltorque.ca wrote:
 On 27/09/09 Xi Shen said:

 iis if possible. the problem is that i do not have cygwin on my
 windows```if installing gitweb on windows is so complicate, i
 would turn to use trac, which has a plugin to view git repo.

 I think make just sets up a few variables in the cgi. You could set them up by
 hand, but you still need a web server.

 Mike

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAkq+xxAACgkQKGqCc1vIvggKzgCeIDTCzPEfLe7zFgJZOdViAEK3
 j5cAnRsWltl6Ks/nIBTeLpJ3/OPbLfge
 =XnQt
 -END PGP SIGNATURE-





-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-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
-~--~~~~--~~--~--~---



[git-users] Re: how to view git repo in web page under windows?

2009-09-26 Thread Xi Shen

ok, i checked the tar ball, it is a perl script. but the installation
guide said it needs to run make gitweb/gitweb.cgi to have it
installed. i do not have a linux environment, and i do not know what
the 'make' would do with that perl script. if the make only copy the
files to their destination, i think i can skip this step. can you help
me?


On Sat, Sep 26, 2009 at 10:31 PM, Michael P. Soulier
msoul...@digitaltorque.ca wrote:
 On 26/09/09 Xi Shen said:

 what kind of cgi? perl or bash?

 Are those the only possible choices? :)

 if it is perl, i think i can get it work on windows with iis

 You could look for yourself too. :)

 Mike




-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-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
-~--~~~~--~~--~--~---



[git-users] how to use git with winmerge

2009-09-25 Thread Xi Shen

hi,

i am working on windows, using msysgit. i want to use winmerge as my
diff/merge tool when doing git diff/git merge. i tried to set the
diff.external, but the behavior is not very nice. it launches winmerge
and compare the files one by one, and when the diff process exist, my
command windows hangs. i want it to send all the files need to compare
to winmerge in one batch, so i can see all the diff in one window.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-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
-~--~~~~--~~--~--~---



[git-users] Re: how to view git repo in web page under windows?

2009-09-25 Thread Xi Shen

i think gitweb is now bundled with git, and is invoked by git
instaweb. am i wrong?

btw, where you get your gitweb? i cannot find a place to download it.
because on the official site of gitweb, it says it is bundled with git
and is release with it.


On Fri, Sep 25, 2009 at 9:34 PM, Michael P. Soulier
msoul...@digitaltorque.ca wrote:
 On 25/09/09 Xi Shen said:

 i am using msysgit un windows, and i found that it comes without git
 instaweb. so, how can i view my git repo in browser?

 I don't find instaweb very useful, personally. I put my private repositories
 onto my home server running apache and use gitweb.

 For public repositories I'm using github.

 Mike




-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-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
-~--~~~~--~~--~--~---



[git-users] how to view git repo in web page under windows?

2009-09-24 Thread Xi Shen

hi,

i am using msysgit un windows, and i found that it comes without git
instaweb. so, how can i view my git repo in browser?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-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
-~--~~~~--~~--~--~---



[git-users] Re: amend commit message many commits ago

2009-09-24 Thread Xi Shen

this is brilliant idea. thanks :)


On Fri, Sep 25, 2009 at 12:33 PM, Jeenu jee...@gmail.com wrote:


 On Sep 25, 8:15 am, davidshe...@googlemail.com
 davidshe...@googlemail.com wrote:
 hi,

 i found i made a typo error in a commit message which is many commits
 away from current HEAD, how can i amend the message? i tried git
 commit --commit my commit hash, but it created an new commit and
 advanced my HEAD.

 May not be the best, but you can try this:

 * After switching to your brach, do git rebase -i your commit
 * In the edited, change pick your commit to edit your commit,
 and close the editor
 * The rebase operation will pause for you. At that point it's in a
 state where you made your commit
 * You can now do a git commit --amend, edit your commit message and
 perform the commit as usual
 * Once you're done, you can finish the rebase with git rebase --
 continue

 HTH
 :J
 




-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-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
-~--~~~~--~~--~--~---