git stash clear清空本地暂存代码

git stash clear清空本地暂存代码

git stash

或者

git stash list

查看本地暂存的代码。

清除本地暂存的代码修改:

git stash clear

git回退代码仓库版本_git回退到之前的版本会影响本地代码嘛_zhangphil的博客-CSDN博客git回退代码版本_git回退到之前的版本会影响本地代码嘛https://blog.csdn.net/zhangphil/article/details/125624513git diff比较不同commit版本的代码文件异同_git比较两个commit差异_zhangphil的博客-CSDN博客git diff比较不同commit版本的代码文件异同 如图,假设像知道app目录下的build.gradle文件在两次commit(fee9f9cf4b和cdd577e352)之间的异同和变化,可是使用命令git diff:git diff fee9f9cf4b cdd577e352 app/build.gradle输出如图: 如果git diff后面只有两个co..._git比较两个commit差异https://blog.csdn.net/zhangphil/article/details/83095778git删除本地分支_zhangphil的博客-CSDN博客git branch -d <分支名>可以通过: git branch 查看所有本地分支及其名字,然后删除特定分支。https://blog.csdn.net/zhangphil/article/details/82255002

git查看当前分支所属的远程仓库地址_git 查看分支地址_zhangphil的博客-CSDN博客git remote -v_git 查看分支地址https://blog.csdn.net/zhangphil/article/details/113763400git查看当前SSH密钥和pub密钥_zhangphil的博客-CSDN博客第一步:cd ~/.ssh第二步:cat id_rsa.pubhttps://blog.csdn.net/zhangphil/article/details/105712479

猜你喜欢

转载自blog.csdn.net/zhangphil/article/details/131922779