0

GIT

I am creating a GIT Repository on an existing project. I installed GIT BASH on my computer. I created a git folder by using command git init. But I cannot locate the file I saved in one of my folder on my desktop? Is it I am doing something wrong?? Please help

11th May 2022, 4:28 PM
Knowledge Is Power
Knowledge Is Power - avatar
4 Respostas
+ 2
https://www.sololearn.com/learn/2338/?ref=app Make sure that your working directory is set to the relevant folder. Then check, if there are any files in it, e.g. git status
11th May 2022, 5:39 PM
Lisa
Lisa - avatar
0
You need to set the git to the repo folder directory.
11th May 2022, 5:32 PM
Lisa
Lisa - avatar
0
How? I m a new bee
11th May 2022, 5:33 PM
Knowledge Is Power
Knowledge Is Power - avatar
0
If you are on windows you can open a command prompt in your folder: open the folder, where your file is stored and type "cmd" in the path and hit enter. That opens a prompt with the path to your folder. There you can enter git init, which creates a git in that folder. Or you open the prompt, direct to the folder by "cd path/to/folder" and then git init... Hope that helps
11th May 2022, 6:50 PM
Fu Foy
Fu Foy - avatar