Closed. This question is off-topic。它当前不接受答案。
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
2年前关闭。
我在digitalocean项目中有哪个存储库位于bitbucket中。
当我需要推送内容时,请在下面编写代码。
首先使用git bash将所有内容推送到bitbucket存储库
1.检查更改
2.添加更改
3.然后按
然后使用
1.打开腻子后写
2.
3.然后转到目录cd / var / html / www / new
4.然后
5,收到错误消息后,关于权限被拒绝的事情我写了
6,我的
7,Bitbucket登录
在此过程之后,我将目录推送到var / html / www / new
问题是:
如何将所有文件从当前新目录移动到www
现在所有文件都将在
但是更好的方法是将存储库拉到以下目录:
转到目录
然后
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
2年前关闭。
我在digitalocean项目中有哪个存储库位于bitbucket中。
当我需要推送内容时,请在下面编写代码。
首先使用git bash将所有内容推送到bitbucket存储库
1.检查更改
git status
2.添加更改
git add -A
3.然后按
git push
然后使用
putty
推送到digitalocean服务器。1.打开腻子后写
username
2.
password
之后3.然后转到目录cd / var / html / www / new
4.然后
git pull origin master
5,收到错误消息后,关于权限被拒绝的事情我写了
sudo !!
6,我的
password
7,Bitbucket登录
password
在此过程之后,我将目录推送到var / html / www / new
问题是:
如何将所有文件从当前新目录移动到www
最佳答案
连接到数字海洋服务器(使用腻子)并将文件获取到目录var/html/www/new
之后,可以使用以下命令移动文件:
mv var/html/www/new/* var/html/www/
现在所有文件都将在
var/html/www/
中。但是更好的方法是将存储库拉到以下目录:
转到目录
cd /var/html/www
然后
git pull origin master
关于linux - 使用ssh命令行将存储库中的所有文件从一个目录移动到另一个目录,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51873183/