已经在几个开发人员的本地计算机上克隆了一个Git存储库.对存储库中的代码进行了一些更改.我们现在收到错误:
error: Your local changes to the following files would be overwritten by merge:
public_html/sites/file
public_html/sites/file1.txt
public_html/sites/file2.txt
Please, commit your changes or stash them before you can merge.
Aborting
Run Code Online (Sandbox Code Playgroud)
我在线阅读了不少主题,并提出了几种不同的选择.一种方法是运行:
git stash
git pull
git stash pop
Run Code Online (Sandbox Code Playgroud)
我想我理解了藏匿的基本原则.我的问题是,这是一个很好的解决方案,我可以使用这种方法遇到任何问题吗?我对Web开发有一个合理的理解,但我是一个相当基本的Git用户,并且在这一点上没有很多能力让自己摆脱困境.
客户端使用用户名firstname.lastname@email.com(我的电子邮件地址)向我提供了对其Web服务器的SSH访问.
我试过了:
ssh firstname.lastname@email.com@555.555.555.555
ssh firstname.lastname+email.com@555.555.555.555
Run Code Online (Sandbox Code Playgroud)
和其他几个组合,但没有运气.
我对服务器环境一无所知,除了它有点Linux的味道.
在我回到他们说它不起作用之前,也许我错过了什么?