0

I want to split off a folder inside my existing github repository into it's own repository so I tried following the instructions here: https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository/

I've never installed git on my machine before so I downloaded the latest installer and went through the options. I choose the option 'Use Git from windows command prompt'. Once it's installed there are some commands that do not work.

Git Bash: enter image description here

Git CMD: enter image description here

I've tried setting the PATH variable as well manually but that doesn't fix it, I still get the same 'command not found'.

Is this a bug with the latest git? Or did I somehow mess up the install?

I'm on windows 10 machine.

1 Answer 1

3

git is the program remote and -v are arguments for it

First you will want to clone a repository that you want for example

git clone https://github.com/justinmeister/Mario-Level-1 mario_game

this will create a folder called mario_game with the git remote setup.

cd mario_game

git remote -v

Now you will see the remote as https://github.com/justinmeister/Mario-Level-1

Sign up to request clarification or add additional context in comments.

2 Comments

See my second screenshot - it shows git remote -v as 'fatal: Not a git repository'
@Igneous01 It says that while you are in your home directory. You then tried to change into the DCS directory (using the wrong command) but didn't try to run any git commands after that. Try cd DCS and then git remote -v.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.