This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlgit: bare ‘git push’ is dangerous
authorFather Chrysostomos <sprout@cpan.org>
Wed, 19 Sep 2012 03:16:20 +0000 (20:16 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 19 Sep 2012 03:17:12 +0000 (20:17 -0700)
About three times now I have made changes on a branch, to try things
out, and then later on tried to push to blead with ‘git push’ and
modified other people’s branches at the same time.

pod/perlgit.pod

index 9b5fe3f..3bbd4b3 100644 (file)
@@ -656,7 +656,7 @@ then merge it into blead then push it out to the main repository:
 
   % git checkout blead
   % git merge experimental
-  % git push
+  % git push origin blead
 
 If you want to delete your temporary branch, you may do so with:
 
@@ -824,7 +824,7 @@ Or you could just merge the whole branch if you like it all:
 
 And then push back to the repository:
 
-  % git push
+  % git push origin blead
 
 =head2 Using a smoke-me branch to test changes