[git-users] Freeze a branch

2012-03-11 Thread Mark Liversedge
Hi,

I have a branch on github that was used for development for the last 18 
months, but it has now been merged back into master.

I will be removing it shortly, but am keeping it just in case anything odd 
crops up, or folks have local versions they are working against and submit 
a patch in the next couple of weeks.

But .. I don't want to use the branch, any pushes to github must go against 
master, since this branch will be deleted soon.

is there a way of 'freezing' or 'hiding' a remote branch so no updates can 
be pushed (and ideally, it cannot be cloned either) ?

Thanks,
Mark

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/pnBc_eCGKucJ.
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.



Re: [git-users] Freeze a branch

2012-03-11 Thread Michael P. Soulier
On 11/03/12 Mark Liversedge said:

 Hi,
 
 I have a branch on github that was used for development for the last 18 
 months, but it has now been merged back into master.
 
 I will be removing it shortly, but am keeping it just in case anything odd 
 crops up, or folks have local versions they are working against and submit 
 a patch in the next couple of weeks.
 
 But .. I don't want to use the branch, any pushes to github must go against 
 master, since this branch will be deleted soon.
 
 is there a way of 'freezing' or 'hiding' a remote branch so no updates can 
 be pushed (and ideally, it cannot be cloned either) ?

You can modify your hooks to block it, but I would think that simply choosing
to not use it should be sufficient. :)

Mike

-- 
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.



Re: [git-users] Freeze a branch

2012-03-11 Thread Konstantin Khomoutov
On Sun, 11 Mar 2012 06:19:26 -0700 (PDT)
Mark Liversedge liverse...@gmail.com wrote:

 I have a branch on github that was used for development for the last
 18 months, but it has now been merged back into master.
 
 I will be removing it shortly, but am keeping it just in case
 anything odd crops up, or folks have local versions they are working
 against and submit a patch in the next couple of weeks.
 
 But .. I don't want to use the branch, any pushes to github must go
 against master, since this branch will be deleted soon.
 
 is there a way of 'freezing' or 'hiding' a remote branch so no
 updates can be pushed (and ideally, it cannot be cloned either) ?
Just replace the branch with a tag (possibly annotated).
The trick is that tags point to lines of history, just like branches,
but they don't move.  There's no problem with using tags to refer to
history--be it `git diff`, `gitk` etc.

Assuming that branch to be freezed is called feaure, do something
like this:
$ git checkout master
$ git tag -a feature feature
...Write up a tag message explaining the freeze...
$ git branch -D feature
$ git push github :feature feature

The last command will first delete the branch feature
in the remote repository and then push the same named tag
there effectively replacing the branch with the tag.

-- 
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] Is there a way to rename a label in git?

2012-03-11 Thread AdrianH
I inadvertently labelled two labels with the wrong number.  Is there some 
method to rename these to the correct number?

Thanks,


A

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/RAcE8brfO8gJ.
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: Is there a way to rename a label in git?

2012-03-11 Thread AdrianH
Never mind, I couldn't find it because I was using wrong terminology.  I 
should have looked up rename tag.  

Thanks.


A

On Sunday, March 11, 2012 11:32:04 PM UTC-4, AdrianH wrote:

 I inadvertently labelled two labels with the wrong number.  Is there some 
 method to rename these to the correct number?

 Thanks,


 A


-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/5jaQCXcTbwQJ.
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.