Sunday, April 29, 2018

cloning github wiki repository to the other

  1. solving error "remote repository already exists"
  2. following are the ways: 
  3. git remote rm origin // to remove the existing repository
     
  4. git remote add origin https://github.com/username/abc.wiki.git

     
  5. git add . //for staging files
     
  6. git commit -m  "first doc commit"
    [master 55a63a5] first doc commit
     10 files changed, 1428 insertions(+), 1 deletion(-)
     create mode 100644 A.md
     create mode 100644 R.md
     create mode 100644 D.md
     create mode 100644 G.md
     create mode 100644 N.md
     create mode 100644 P.md
     create mode 100644 Rn.md
     create mode 100644 S.md
     create mode 100644 n.md
  7. git push origin master
    fatal: HttpRequestException encountered.
       An error occurred while sending the request.
     
  8. Username for 'https://github.com': 
  9. Password for
    Counting objects: 12, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (11/11), done.
    Writing objects: 100% (12/12), 7.35 KiB | 0 bytes/s, done.
    Total 12 (delta 1), reused 0 (delta 0)
    remote: Resolving deltas: 100% (1/1), done 
https://stackoverflow.com/questions/10904339/github-fatal-remote-origin-already-exists

No comments:

Post a Comment