我是 git 的新手,2年前我发布了一个我的项目(最后一年培训项目)。 现在我做了一些更改来改变项目结构(我将项目分开 库 + 示例)我也改变了构建工具。所以要实现这个目标,我有这个想法:
git clone url
git rm *
git add *
git commit
git push
和git push origin master
我仍然遇到问题Everything is up-to-date
注意:我已经为Everything is up-to-date
应用了不同的解决方案,但没有结果
warning: LF will be replaced by CRLF in .idea/workspace.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in wakadroid.iml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in wakadroidlib/wakadroidlib.iml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in wakadroidsample/wakadroidsample.iml.
The file will have its original line endings in your working directory.
答案 0 :(得分:0)
您是否git push
后跟git push origin master
?在一个新的克隆中,这些将是相同的(假设您在主分支上进行了更改)。这意味着您所做的第一个推动了更改,然后第二个没有任何事情要做。
答案 1 :(得分:0)
使用git add .
代替git add *