cd: /path/to/my/repo: No such file or directory

我与影子孤独终老i 提交于 2019-12-12 00:13:48

问题


I am trying to push my hello_app to my bitbucket repository. I have an existing project and have trouble following these steps:

cd /path/to/my/repo
git remote add origin git@bitbucket.org:Bob123/hello_app.git
git push -u origin --all 
git push -u origin --tags 

When I cd /path/to/my/repo in my shell in cloud9, I get this error:

cd: /path/to/my/repo: No such file or directory

回答1:


I don't know if the people with the problem resolved it, but here is how I fixed this problem.

Using this tutorial: https://confluence.atlassian.com/display/BITBUCKET/Import+code+from+an+existing+project

In your project's root directory, run:

git init
git add .
git commit -m "message"

Then follow the steps from the initial page of the repo:

git remote add origin https://xxxx@bitbucket.org/xxx/xxx.git
git push -u origin --all
git push -u origin --tags

Hope I've helped someone!



来源:https://stackoverflow.com/questions/31796075/cd-path-to-my-repo-no-such-file-or-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!