Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJude Molloy
7,470 PointsGIT Basics
I am at 3 minutes and 56 seconds on the git basics: "Looking Back on What We've Done" video and I have followed all the steps yet when I type the "ls" command it only shows me README.txt and file 3. Can someone please explain where file1 and file2 have gone.
Jude Molloy
7,470 Points+Walter Allen I recently cleared my feed so this is all i have got to show: Jude@JUDEDE ~/Videos/Website/Treehouse/Rails Development/Git/test_repo ((d4654cb ...)) $ notepad file1
Jude@JUDEDE ~/Videos/Website/Treehouse/Rails Development/Git/test_repo ((d4654cb ...)) $ find file1 find: file1: No such file or directory
Jude@JUDEDE ~/Videos/Website/Treehouse/Rails Development/Git/test_repo ((d4654cb ...)) $ ls README.txt file3
Jude@JUDEDE ~/Videos/Website/Treehouse/Rails Development/Git/test_repo ((d4654cb ...)) $ ls -a . .. .git README.txt file3
Jude@JUDEDE ~/Videos/Website/Treehouse/Rails Development/Git/test_repo ((d4654cb ...)) $
I only opened the notepad command to try and check if the file was there. Any help is greatly appreciated :)
2 Answers
Walter Allen
iOS Development with Swift Techdegree Student 16,023 PointsHey, Jude. Not sure exactly where you are in the course, so forgive the questions. Have you gotten to branching? If so, it's possible that you are in a different branch of your git where file1 and file2 don't exist.
Otherwise, it's possible that you deleted them accidentally using the rm (remove) command?
Lastly, perhaps you could try to search the entire drive with this command: find ~ file1
This will search your entire home directory for the file. If you don't find it, then it's my guess that you either made an typographical error when you first created it OR you unintentionally delete it somewhere. (It happens. Such is life.) ;)
Does that help?
Jude Molloy
7,470 PointsThanks! I have just realised the mistake i have made i didn't realise that the repository i went back to didn't have those files stored in it. thanks for your help anyway. :) I haven't learned about branches yet but i assume that the specific branch I went back to didn't have those files on it. Thanks for your help.
Walter Allen
iOS Development with Swift Techdegree Student 16,023 PointsWalter Allen
iOS Development with Swift Techdegree Student 16,023 PointsI think in order to do that we would need to see your output. Any way that you could copy and paste your terminal feed into a comment section here. Then, we should be able to see exactly what commands you use and what your output results were. :)