[git-users] Re: Is there a way to rename a label in git?
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.
[git-users] Is there a way to rename a label in git?
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.
Re: [git-users] "Freeze" a branch
On Sunday, 11 March 2012 14:04:32 UTC, Konstantin Khomoutov wrote: > > 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. > We use tags and branches already thank you. I am only keeping this branch for a short time. I guess we can't do what I would like, but its no big deal. Like someone else said we'll just remember not to use it! :) Thanks anyway, 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/-/FlNGTnK8yNAJ. 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
On Sun, 11 Mar 2012 06:19:26 -0700 (PDT) Mark Liversedge 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.
Re: [git-users] "Freeze" a branch
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.
[git-users] "Freeze" a branch
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.