错误原因
在使用git push
的时候报Your branch is up to date with ‘origin/master’. nothing to commit, working tree clean
解决办法
- rm -rf .git/
- git init
- git remote add origin https://repository.remote.url(地址改成你git clone的地址)
- git commit -m “Commit message”
- git push -f origin master