【git】强制覆盖本地代码(与git远程仓库保持一致)

git强制覆盖:
    git fetch --all
    git reset --hard origin/master
    git pull
git强制覆盖本地命令(单条执行):
    git fetch --all && git reset --hard origin/master && git pull
--------------------- 
IDEA查询依赖树不全:

mvn dependency:tree > 1.txt

vim 1.txt

git-更改本地和远程分支的名称

git branch -m old_branch new_branch # Rename branch locally 
git push origin :old_branch # Delete the old branch 
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote


 

 

展开阅读全文

没有更多推荐了,返回首页