git远端备份
第1步 添加push地址:
git remote add origin XX@XX.X.XX.XX
第二步 push
git push
#或者
git push origin
默认情况下,push的地址就是 origin 指向的地址
git怎么删掉远程commit
要取消github commit 提交到本地仓库的代码,要用到 $git reset语句 $git reset意思是撤销上一步的操作 场景: 你已经执行了 git push, 把你的修改发送到了 GitHub,现在你意识到这些 commit 的其中一个是有问题的,你需要撤销那一个 commit. 方...
|