I did the following command on gitBash yesterday 1)cd /h/git and 2)git clone
and I imported the existing project into eclipse
but I still wasn’t able to add and commit, I think it was giving me an error message ‘’No such file or directory’’ anyone knows why ?
Make sure after cloning the repo, you change your directory to the repo you just cloned. That means running another cd command looking like:
Replacing "RepoName" with the name of the local repo. I hope this helps!
After you clone the repository you still have to do the command “cd “ and then the repository name so that you are in the actual repository. Then after that you can push and pull
It might be that the folder/file you're trying to work with in git bash no longer exists or never did. Is it possible there was a typo in either your command or the folder/file names? Did you or anyone in your group recently move/delete folders/files involved in your project?
You have to select a specific folder within your git folder, like cd /h/git/project1 I believe
It is probably because you are not in the repository. When this happens I usually write 'ls'. This gives a list of sub folders. I then choose my repository by typing 'cd /h/git/reponame''.
You are attempting to push the folder, not the repository. You need to cd (change directory) to the folder and push the repository