Skip to main content
added 122 characters in body
Source Link
Nemo
  • 1.2k
  • 3
  • 17
  • 44

I cloned a git repo into my pc using this command in my git bash

git clone https://github.com/xxx/yyy.git

which created a folder called yyy in my pc.

How can I update the folder yyy in my pc with new contents of the https://github.com/xxx/yyy.git (is it called remote repo)?

I followed the instructions in Updating a local repository with changes from a GitHub repository, in particular git pull origin master but none of them worked and returned the error $ git pull origin master fatal: Not a git repository (or any of the parent directories): .git.

I also tried git pull https://github.com/xxx/yyy.git as I reasoned that if I successfully did git clone https://github.com/xxx/yyy.git, the git pull https://github.com/xxx/yyy.git must work otherwise git syntax is not great.

Should I do the "clone" again to overwrite the existing folder in my pc? Why can't I do "pull"?

I cloned a git repo into my pc using this command in my git bash

git clone https://github.com/xxx/yyy.git

which created a folder called yyy in my pc.

How can I update the folder yyy in my pc with new contents of the https://github.com/xxx/yyy.git (is it called remote repo)?

I followed the instructions in Updating a local repository with changes from a GitHub repository, in particular git pull origin master but none of them worked and returned the error $ git pull origin master fatal: Not a git repository (or any of the parent directories): .git

Should I do the "clone" again to overwrite the existing folder in my pc? Why can't I do "pull"?

I cloned a git repo into my pc using this command in my git bash

git clone https://github.com/xxx/yyy.git

which created a folder called yyy in my pc.

How can I update the folder yyy in my pc with new contents of the https://github.com/xxx/yyy.git (is it called remote repo)?

I followed the instructions in Updating a local repository with changes from a GitHub repository, in particular git pull origin master but none of them worked and returned the error $ git pull origin master fatal: Not a git repository (or any of the parent directories): .git.

I also tried git pull https://github.com/xxx/yyy.git as I reasoned that if I successfully did git clone https://github.com/xxx/yyy.git, the git pull https://github.com/xxx/yyy.git must work otherwise git syntax is not great.

Should I do the "clone" again to overwrite the existing folder in my pc? Why can't I do "pull"?

added 122 characters in body
Source Link
Nemo
  • 1.2k
  • 3
  • 17
  • 44

I cloned a git repo into my pc using this command in my git bash

git clone https://github.com/xxx/yyy.git

which created a folder called yyy in my pc.

How can I update the folder yyy in my pc with new contents of the https://github.com/xxx/yyy.git (is it called remote repo)?

I followed the instructions in Updating a local repository with changes from a GitHub repository, in particular git pull origin master but none of them worked. and returned the error $ git pull origin master fatal: Not a git repository (or any of the parent directories): .git

Should I do the "clone" again to overwrite the existing folder in my pc? Why can't I do "pull"?

I cloned a git repo into my pc using this command in my git bash

git clone https://github.com/xxx/yyy.git

which created a folder called yyy in my pc.

How can I update the folder yyy in my pc with new contents of the https://github.com/xxx/yyy.git (is it called remote repo)?

I followed the instructions in Updating a local repository with changes from a GitHub repository, in particular git pull origin master but none of them worked.

Should I do the "clone" again to overwrite the existing folder in my pc? Why can't I do "pull"?

I cloned a git repo into my pc using this command in my git bash

git clone https://github.com/xxx/yyy.git

which created a folder called yyy in my pc.

How can I update the folder yyy in my pc with new contents of the https://github.com/xxx/yyy.git (is it called remote repo)?

I followed the instructions in Updating a local repository with changes from a GitHub repository, in particular git pull origin master but none of them worked and returned the error $ git pull origin master fatal: Not a git repository (or any of the parent directories): .git

Should I do the "clone" again to overwrite the existing folder in my pc? Why can't I do "pull"?

Source Link
Nemo
  • 1.2k
  • 3
  • 17
  • 44

Updating local folder with new contents from a git repo

I cloned a git repo into my pc using this command in my git bash

git clone https://github.com/xxx/yyy.git

which created a folder called yyy in my pc.

How can I update the folder yyy in my pc with new contents of the https://github.com/xxx/yyy.git (is it called remote repo)?

I followed the instructions in Updating a local repository with changes from a GitHub repository, in particular git pull origin master but none of them worked.

Should I do the "clone" again to overwrite the existing folder in my pc? Why can't I do "pull"?