0
我想从我的本地系统上传我的bitbucket存储库中的所有修改。 过程上传对到位桶仓库git pull起源问题<branch name>
git branch
git branch -a
git checkout <branch_name>
git add .
git commit -m "message"
git push origin <branch_name>
git status
我上面过程中完成对到位桶库上传代码,所有修改过的文件和代码特别分支成功上传的所有代码。 但是,当从在服务器中的特定分支取出库然后某些文件被取出和一些文件被错过(I使用下面proceess取出来自到位桶库代码)
login in my server and go to project folder
git pull origin <branch_name>
then I got the following error => Error in app/controllers/index_controller.rb
app/models/index.rb
app/views/index.html.erb
db/schema.rb
and so on
然后我按照这些命令
git stash save --keep-index
git stash drop
git reset file_path(app/controllers/index_controller.rb)
git pull origin +branch_name
sudo service apache2 restart
我遵循上述所有过程,但我从bitbucket存储库中提取了一些文件,并丢失了一些文件。 所以请帮助我,我试着6〜8次,但我得到了同样的问题,我在哪儿错的,什么是错误
我试过“混帐取--all”命令,然后我得到了错误:你的意思是'--all'(有两个破折号?) –
我也尝试过“git pull -f origin”,然后我得到以下消息(没有合适的参与者之间的合并 通常这意味着你提供了一个通配符refspec,它在远端没有 匹配。) –
是有两个破折号,提取 - 所有的远程列表吗? – iSensical