cd:/path/to/my/repo:没有这样的文件或目录 [英] cd: /path/to/my/repo: No such file or directory

查看:556
本文介绍了cd:/path/to/my/repo:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将hello_app推送到我的bitbucket存储库. 我有一个现有项目,但在执行以下步骤时遇到了麻烦:

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 

当我在cloud9的shell中cd /path/to/my/repo时,出现此错误:

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

推荐答案

我不知道问题解决者是否解决了问题,但这是我解决此问题的方法.

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

使用本教程: 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!

这篇关于cd:/path/to/my/repo:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆