git - repository not found in local server -
i learn basic operations git , have problem. have apache server localhost:8080. have repositories:
- 'c:\apache\localhost\www\machine2.git'.
- 'c:\programs\gitrepositories\video2'.
i wrote 'http://localhost:8080/machine2.git/' in browser, , browser me fine answer catalog of files. in git bash of 'machine2.git' wrote:
# rustam@rustam_pc /c/apache/localhost/www/machine2.git $ git --bare init # initialized empty git repository in c://apache/localhost/www/machine2.git # rustam@rustam_pc /c/programs/gitrepositories/video2 $ git init $ git add . $ git commit -m "initial" # [master (root-commit) ed08a791 initial # 1 file changed, 1 insertion(+) # create mode 100644 readme $ git remote add origin http://localhost:8080/machine2.git/ $ git push origin master # fatal: repository 'http://localhost:8080/machine2.git/' not found
i have no idea. please, help!
answer. open properties of machine2 , set common access all. copy link directory.
1.delete video2 folder; 2.create again video2 folder @ path 3.open bash , wrote code again.
$ git init $ git add . $ git commit -m "initial" $ git remote add origin //rustam_pc/machine2 $ git push origin master # counting objects: 3, done. # writing objects: 100% (3/3), 223 bytes | 0 bytes/s. done. # total 3 (delta 0), reused 0 (delta 0) # //rustam_pc/machine2 # * [new branch] master -> master
thanks all!
Comments
Post a Comment