1、clone代码git
cloneurl
1.登陆帐号密码不对 fatal: Authentication failed for 2.权限不足 Permission denied (publickey) 或者emote: User permission denied fatal: unable to access url The requested URL returned error: 403
2、合并分支提交代码code
合并blog
Push rejected: Push master to origin/master was rejected by remote 提交备注格式不对会拒绝 解决方法:
git log查看提交记录rem
回退到上个提交版本号 好比说此次提交的是不能push到远程仓库的 就回退到it
git reset --soft e5463abfc600dac9b98c3541d1af56cc7fbf97c8 (不加--soft 会删除掉本地代码)
pull 代码冲突io
Git Pull Failed You have not concluded your merge (MERGE_HEAD exists). Exiting because of unfinished merge.
解决办法:ast
方法一: git reset --merge 注:取消合并 方法二: git add 注:追加修改后的文件 方法三: git commit --amend 注:提交修改后的代码 方法四: git push +分支 注:提交到某个分支中