how to undelete a deleted remote branch

I accidently did this:

$ git push origin :development
To git@xxxxx.com:yyyyy/projects/web.git
 - [deleted]         development

How do I undo? What is the second best thing I can do?

Answers


If your branch was fairly up-to-date with the remote one, a simple:

git push origin development:development

should be enough, as illustrated by this thread. If not, a local action needs to be done on the remote server side (through reflog or fsck) to retrieve the branch HEAD SHA1 id and checkout it again.


Need Your Help

Use Django ORM to select rows if a value is in a range stored in columns

python django postgresql

I apologize for the phrasing, I'm just not sure how to express this idea. It might make more sense if you have a look at my query:

IComparer sort on databound Datagridview

c# winforms datagridview

I have a data-bound DataGridView that I am trying to sort using an IComparer.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.