
git命令
何处风景如画
一以贯之的努力,不得懈怠的人生
展开
-
git命令
git clone http:// git status git add . git commit -m “xxx” git push origin master git pull --rebase 修正 git add .txt git commit --amend 修改倒数第二个提交 git rebase -i HEAD^^ git add .txt git commit --amend git rebase --continue 撤销提交 git reset --hard HEAD^ 撤销push g原创 2021-09-12 18:24:37 · 188 阅读 · 0 评论 -
git打包文件命令使用
进入要打包的文件目录下,如图 右键选择Git Bash Here打开(已经下载了git) 使用命令如下: git init //初始化一个文件夹为git项目目录 git add //提交到暂存区 git commit //提交到本地 git archive master > C:/myfile.zip //可以选择压缩保存的文件夹,这里要注意!!!路径斜杠“/”方向 用git打包会发现压缩后的文件很小,之前用压缩工具压缩成8MB的文件git压缩后只有240KB。 ...原创 2021-07-28 23:25:20 · 2286 阅读 · 0 评论