Code Monkey home page Code Monkey logo

Comments (5)

kqdtran avatar kqdtran commented on August 16, 2024 2

@aculich Oh I see, I thought Alex's question was getting back the file he already pushed to github...

In that case, I think git checkout would work?

Edit: a relevant StackOverflow question http://stackoverflow.com/questions/3150394/how-to-undelete-a-file-previously-deleted-in-gits-history. git checkout <commit> <filename> is what the top answer says. To get a list of commits, I suppose we can do git log?

from questionnaire.

kqdtran avatar kqdtran commented on August 16, 2024

Since you already push it to github, just clone it back to your local VM :D git clone https://github.com/YOUR_ACCOUNT_NAME/questionaire.git

from questionnaire.

aculich avatar aculich commented on August 16, 2024

@kqdtran The answer is a little more complicated than that... it is a file that was deleted both locally AND the deletion was pushed to github... so it's not just a matter of simply pulling from github to recover the deleted file.

@alexchao56 Did you ever get an answer to your question on stackoverflow? Can you post a link to your SO question here so we can all see if an answer shows up?

from questionnaire.

alexchaomander avatar alexchaomander commented on August 16, 2024

This is the SO post that I put up. It seems that a solution is to checkout the file in question and then recommit it again.

http://stackoverflow.com/questions/19215393/how-do-i-undelete-a-file-after-git-rm-and-pushing-to-github

from questionnaire.

aculich avatar aculich commented on August 16, 2024

You submitted the question at 2013-10-07 00:03:17Z and the first answer appeared at 2013-10-07 00:28:32Z and was the right answer for what you needed. That's ~25 mins! You increase your chances of success by submitting to StackOverflow and you also save effort, frustration, and can focus on other things (take a stretch break, go eat something, work on another part of the problem) while you're waiting for an answer.

I hope this will encourage you to submit another question to SO again!

IMPORTANT: Also make sure you accept the best answer (it will appear with a green checkmark when you do) so the person who answers your question will be rewarded with points for the effort they spent answering it. The points add up and actually are valuable. Employers do look at your SO history to see how well you ask and answer questions! It is a great way to get an edge over other people in the job market when you're interviewing. The SO point system is a factor.

from questionnaire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.