Search code examples
gitgithubcopyclone

Copying git repo after cloning it to local PC to a different folder


I am fairly new. So I have already cloned a repo from git hub! Copying this file and pasting it in a different folder and making changes there. Will it affect my original repo?


Solution

  • you first need to clone your project in a directory.

    git clone <url>
    

    then do your changes.

    and finally do these steps to push your changes.

    git add * 
    git commit -m "some comments about changes"
    git push origin master 
    

    during the process git might ask for some credential