Where did my branch go?

So on Git:

First I did a git clone and checkout the Master. Then I wanted to create a branch for myself so I did a git checkout -b nameThatIForgot but I hadn't made any changes to it, no commits, etc.... nothing.

Then later today I deleted the whole folder and recloned the git repo.

So now I don't have that branch anymore? It is alright if it is gone, just wanted to make sure I am not creating an extra branch if the previous one still exists.


Your branch is gone. Local branches are stored inside the .git folder of the repository. If you delete it, everything is lost (unless you have pushed to another repo).

If you did not push the branch to the remote repository, then it only ever existed locally. When you removed your clone, you removed the local branch along with it.

Need Your Help

ASP.net display LoginStatus in masterpage by checking Session

c# asp.net logging session-state

I just want to put LogIn Status text in MY ASP master page. When User not logged IN it will show LogIn and If user already logged In it will show LogOut. Once user Clicked logOut ,session will be c...

Random Numbers in Android

java android random

I know there are a lot of topics about random number generation in Android and Java in general. I am currently programming an app that rolls 5 dices. I currently use Random() to generate these numb...

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.