17
2
I created a repo in the wrong folder. Meaning the User folder in OS where all the user folders are from pics, videos to documents. So I pushed that all to gitHub without knowing and now I can't create a repo anymore because the files that I work with are in the documents folder, which is inside the User Folder. And it will imply that I'm creating a repo within a repo. So when I go to terminal and I run git status, it shows me this:
# On branch master
# Your branch and 'origin/master' have diverged,
# and have 2 and 4 different commits each, respectively.
#
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: Documents/m3/m3---Best-Game-Ever
# deleted: Documents/of_v0072_osx_release/apps/myApps/CCLab_2/cclab_sketch_1/src/Boxes.cpp
# deleted: Documents/of_v0072_osx_release/apps/myApps/CCLab_2/cclab_sketch_1/src/Boxes.h
# deleted: Documents/of_v0072_osx_release/apps/myApps/ball_bouncing/Ball.cpp
# deleted: Documents/of_v0072_osx_release/apps/myApps/ball_bouncing/Ball.h
# deleted: Documents/of_v0072_osx_release/apps/myApps/bouncing_ball_classes/src/ball.cpp
# deleted: Documents/of_v0072_osx_release/apps/myApps/bouncing_ball_classes/src/ball.h
# deleted: Documents/of_v0072_osx_release/apps/myApps/ms_final/src/backGround.cpp
# deleted: Documents/of_v0072_osx_release/apps/myApps/ms_final/src/backGround.h
# deleted: Documents/of_v0072_osx_release/apps/myApps/ms_final/src/backGround2.cpp
# deleted: Documents/of_v0072_osx_release/apps/myApps/ms_final/src/backGround2.h
# deleted: Documents/of_v0072_osx_release/apps/myApps/mySketch/src/backGround.cpp
# deleted: Documents/of_v0072_osx_release/apps/myApps/mySketch/src/backGround.h
# deleted: Documents/of_v0072_osx_release/apps/myApps/mySketch/src/backGround2.cpp
# deleted: Documents/of_v0072_osx_release/apps/myApps/mySketch/src/backGround2.h
# deleted: README.md
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .Trash/
# .bash_history
# .dropbox/
# .openmdao/
# .ssh/
# Documents/2nd_semester/
# Documents/Arduino/
# Documents/OpenMDAO/
# Documents/Personal/
# Documents/T.A/
# Documents/gitHub/
# Documents/mySite/
# Documents/openFrameworks/
# Documents/resources/
# Documents/webcam-pulse-detector-master/
# Dropbox/
# Library/
# Music/
no changes added to commit (use "git add" and/or "git commit -a")
Needless to say I'm never able to pull anything. It says that everything is up to date. At certain point I had a repo that uploaded those folders without the files to gitHub but I deleted that.
Any suggestions?
You sir just saved the day!! So I'm guessing that whenever I want to delete something manual and get rid of it completely I have to re -rf .git – None – 2013-05-23T22:30:52.923
2Removing the
.git
folder will remove the repository :). If you want to get rid of a local repository, this is the way to go. – None – 2013-05-23T22:35:25.247