Comments (5)
@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.
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.
@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.
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.
from questionnaire.
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)
- How to pull up previous ipython file after reopening VM HOT 3
- Help! The original example code in ipython isn't working for me anymore HOT 4
- How to submit the project HOT 3
- Password for sudo/gspread? HOT 1
- Trouble getting curator's code to work. HOT 2
- Going into virtual machine HOT 1
- .cfg file HOT 1
- ipython error HOT 2
- RE: Barriers Group 4 Encountered HOT 1
- Vagrant command issue
- In-Class Questions: Issue for Group 5, from Group 2
- Group 3
- Group 4 HOT 1
- Group 4 Reproducibility Issues HOT 1
- Group 10 Reproducibility Issues
- Group 11 Reproducibility Issues HOT 2
- Issue for Group 5 from Group 4
- Group 1 Reproducibility Issues
- --pylab=inline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from questionnaire.