简体   繁体   English

无法在git中查看checkout分支中的新文件

[英]Could not able to see new files from checkout branch in git

I am doing a web project deployed with tomcat. 我正在用tomcat部署一个web项目。 Since, it is a team project, we are using git for version control. 因为它是一个团队项目,我们使用git进行版本控制。 I checkout to another branch from master branch by using below command, "git checkout skin-changes". 我通过使用下面的命令“git checkout skin-changes”结帐到主分支的另一个分支。 I deploy the project and see new changes in web.However, I couldn't able to new files that are in skin-changes branch in my project. 我部署项目并在web中看到新的更改。但是,我无法在项目中的皮肤更改分支中使用新文件。 I want to see new files. 我想看看新文件。 Please give me a solution for this problem. 请给我一个解决这个问题的方法。

If i understood correctly then your problem is 如果我理解正确,那么你的问题是

I deploy the project and see new changes in web 我部署项目并查看Web中的新变化

So to get the changes in your local copy you have to try git pull origin skin-changes 因此,要获得本地副本的更改,您必须尝试git pull origin skin-changes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM