threads / discuss / 41227

GIT Question

Subject: GIT Question

## tl;dr

5 messages between Jan 20, 2016 and Jan 22, 2016.

replies: 4people: 3as markdown or json

Draggs, Tori· Jan 20, 2016, 21:28 UTC · lore

Specs: MacBook Pro OS X Yosemite 2.6 GHz Intel Core i5, 8GN 1600 MHz DDR3

After selecting the Git option in a recent install of Visual Studio Code 2015 for MAC, my filesystem was removed. I can no longer access any of the local files stored on my machine. After researching many blogs/websites to no avail I am reaching out to you.  I contacted Apple Support who instructed me to contact the developers for GIT.
 
I am a struggling college student interested in a development career. After spending nearly a year to save up for my laptop - seeing everything gone after a few lines of code is more than devastating.  I am new to GIT and am overwhelmed by the breadth of information available.  If you could share your expertise and guide me to a resource that may address this issue I would be so very grateful.  This is my first real project and I was trying to get myself set up with Visual Studio Code 2015 for Mac.  I know that is not your concern, so getting back to my inquiry - specifically I am looking for information on rolling back a possible commit that removed my entire MacBook Pro file system. I have the .bash_history and am including it below. 

git git status git log git rm git rm -r --r git -r --r git git git diff git log git status git log -diff-filter=D -summary git log -diff-filter=D -summary git log -diff-filter=D -author=Parent -summary gitcheckout <commit>~1 (I believe this is where things exploded) git fsck -lost-found ls .git/lost-found/other ls.git/lost-found/other git fsck -lost-found ls .git/lost-found/other git stash git pull -rebase git stash pop git reflog git checkout -b branch-name c3a4103 git fsck -lost-found ls unreachable open .git/lost-found/other cd .git/lost-found/othergit cat-file -p c3a4103 git rm -rf git reset -hard git resert -hard --help Help Restore --restore

--While there is more I don't believe it will assist with your investigation.  If the full file is needed, I would be more than happy to forward it to your attention.   
Thank you again for your time and expertise.  
Tori Draggs
Tori.draggs@mercy.net
Techgeek2013@gmail.com
Github: https://github.com/gnugal314 
This electronic mail and any attached documents are intended solely for the named addressee(s) and contain confidential information. If you are not an addressee, or responsible for delivering this email to an addressee, you have received this email in error and are notified that reading, copying, or disclosing this email is prohibited. If you received this email in error, immediately reply to the sender and delete the message completely from your computer system.
Johannes Schindelin· Jan 22, 2016, 16:51 UTC · re: Draggs, Tori · lore

Re: GIT Question

Hi Tori,
On Wed, 20 Jan 2016, Draggs, Tori wrote:
Show 7 quoted lines
> Specs:
> MacBook Pro 
> OS X Yosemite
> 2.6 GHz Intel Core i5, 8GN 1600 MHz DDR3
> 
> After selecting the Git option in a recent install of Visual Studio Code
> 2015 for MAC, my filesystem was removed.

Can you call Visual Studio Code? If so, the filesystem was definitely not removed, so that's good news.

> I can no longer access any of the local files stored on my machine.

The most likely cause is that you are now looking somewhere else than where the files are actually. Could you use the magnifying glass on the upper right hand corner to search for a file name of the files you had previously?

Ciao, Johannes

Johannes Schindelin· Jan 22, 2016, 17:08 UTC · lore

RE: GIT Question

Hi Tori,

please reply-to-all. I really have no time to serve as your personal, free-of-cost help desk. But I am willing to help on the mailing list.

On Fri, 22 Jan 2016, Draggs, Tori wrote:
> Hi.  I am able to pull up Visual Studio Code.  But none of my local
> files.  I tried using the magnifying glass as well as the Go To feature
> and when performing a search I am informed that the file is not found. 

Were your files inside the .app, or did you store them in your Documents/ folder?

Ciao, Johannes

Draggs, Tori· Jan 22, 2016, 17:22 UTC · re: Johannes Schindelin · lore

RE: GIT Question

I apologize, however my intent in reaching out was not to seek free of cost help desk services.  After speaking with Apple they suggested that I contact both Git and Code developers for feedback on the commands I used prior to the potential file removal.  
I appreciate your assistance thus far and will reach out to the mailing list as you've described below.  Again thank you for your time and have a good day. 
-----Original Message-----
From: Johannes Schindelin [mailto:Johannes.Schindelin@gmx.de] 
Sent: Friday, January 22, 2016 11:09 AM
To: Draggs, Tori
Cc: git@vger.kernel.org
Subject: RE: GIT Question
Hi Tori,

please reply-to-all. I really have no time to serve as your personal, free-of-cost help desk. But I am willing to help on the mailing list.

On Fri, 22 Jan 2016, Draggs, Tori wrote:
> Hi.  I am able to pull up Visual Studio Code.  But none of my local
> files.  I tried using the magnifying glass as well as the Go To feature
> and when performing a search I am informed that the file is not found. 

Were your files inside the .app, or did you store them in your Documents/ folder?

Ciao, Johannes This electronic mail and any attached documents are intended solely for the named addressee(s) and contain confidential information. If you are not an addressee, or responsible for delivering this email to an addressee, you have received this email in error and are notified that reading, copying, or disclosing this email is prohibited. If you received this email in error, immediately reply to the sender and delete the message completely from your computer system.

Santiago Torres· Jan 22, 2016, 17:58 UTC · re: Draggs, Tori · lore

Re: GIT Question

On Fri, Jan 22, 2016 at 05:22:16PM +0000, Draggs, Tori wrote:
> I apologize, however my intent in reaching out was not to seek free of cost help desk services.

Don't worry, just use reply to all so everyone can see and chime in if they can help.

> > Hi.  I am able to pull up Visual Studio Code.  But none of my local
> > files.  I tried using the magnifying glass as well as the Go To feature
> > and when performing a search I am informed that the file is not found. 

I see you were able to run git log, what do you see in it? as it might shed some light on what happened.

-Santiago.

← back to recent threads