It's my first time trying to clone a git from GitLab into VSCode on my windows pc. The cloning process keeps loading for over 15 minutes on end every single time (I've tried multiple times). Any suggestions of what I could be doing wrong?
Click the clone button in GitLab, click on VSCode (html) and select a destination folder. It starts cloning and I would expect this to finish at some point...
Related
I am a complete noob so while trying to deploy one of my programs to heroku, I needed to push it to github, in Vscode while trying to do that, I got a whole bunch of files that I didn't want to upload on github, so I hit remove all from this screen
I now realize that I deleted everything and I don't know what I can do, I tried going into my drive and hitting properties to try and restore but looks like I hadn't turned that feature on. Is there anyway I can recover my files? I am on windows
Simply go to your terminal and navigate to the folder you are pushing to git. You can run these commands:
git log --pretty=oneline (Shows all previous commits)
git checkout . (This resets everything to the previous commit)
Once you have reset your project to the previous commit, try again and delete the files you wanted to remove. Then perform the git commit -am "text here" and git push heroku master commands.
EDIT: This only works if you have already made git commits. If you have deleted everything and git log --pretty=oneline does not show any commits, then there is no way to recover the deleted files.
You can also check the recycle bin of your computer to see if the deleted files are there.
I am using GitHub desktop application on my local machine and when I create and complete my repository(web directory)on my local machine, then I push it GitHub online through desktop application. But here is my problem:
Sometimes it doesn't pick and push all of the files/folders from my local repository, it only pick 3 files, while my repository has 5 folders and one inex.html file.
And sometimes it works perfectly fine. I never understand where is my problem. Any thoughts on this?
Do a git status before your push, as well as a git show HEAD to check the content of your last commit.
That way, you will see if there remain some files not added to the index or not committed.
And you will see if every files you wanted is in a commit.
If one file is consistently ignored, see if it is actually ignored by Git with:
git check-ignored -v -- a/file
So I'm trying to learn how to use GitHub... now my computer's out of whack.
fooled around with a folder - c:/documents/class/lab1part1, typed git init for that folder. Couldn't upload, made some mistakes.
Changed folder to c:/documents/class/lab2part3 and ran git init. made mistakes.
Went back to c:/documents/class/, was able to successfully upload (git init, git add, etc).
Went to github.com and all folders and files were there... except for folders (with files in it) lab1part1 and lab2part3.
So, I deleted that repository and started all over again...
Googled, one site said to use the command "rm -rf $HOME/.git" to undo the git init on my folder.
I typed that in git bash... and things went to hell.
This was done on a macbook pro that dual boots OSX and Windows 10 (clearly this occurred on the windows partition).
Right now - I'm unable to access the start menu, my programs that were in the task bar are gone, I'm unable to access connect to a network or any of my files.
What happened, and how to I fix this - i cannot afford to lose my labs!!!!
Putting aside the rm -rf step:
your lab1part1 and lab2part3 were not on GitHub because you create a git repo in their parent folder c:/documents/class/: when you pushed that repo, the two subfolders were recorded as nested git repo gitlinks (a special entry in the index)
as long as those folders are on your local machine, you will be able to add, commit and push once again (but you will need to push to two separate GitHub repos)
So save your folders elsewhere (backup), re-install Windows, and try agian.
I am running GitHub gui on Windows 7, added a repository with an existing site (about 600mb) and when I click on 'open repository' I see 'loading changes' with the loader but after about 2 min the loader stops and the program hangs until the point windows asks if I would like to restart or close the program.
Anyone else experienced this and found a solution?
Yes, I've seen this before after a developer accidentally checked in a SQL dump into the repo. GitHub for Windows doesn't do well with large repositories. Instead, fire up GitGUI and do the clone yourself with git clone REPOSITORY_URL. (As a bonus, you'll get a progress bar).
I was trying to add bitbucket to my [existing] project on eclipse so I can commit it and have a GIT to work on, but I screwed up. In my GIT Repository Exploring there were 2 cloned project (the same) so I smartly deleted it to import again. The problem is, in my computer, the local folder with the project got deleted. I need to get my files back (as it was before trying to GIT it). Is there anyway I can do it? I'm desperate, since I've backed up 2 weeks ago and I have modified it a lot !
If Eclipse still has the project you can right click on the project and select Restore from Local History.... Eclipse will show you the files it has saved in its file history cache.