侧边栏壁纸
博主头像
Tony's Blog博主等级

行动起来,coding

  • 累计撰写 83 篇文章
  • 累计创建 58 个标签
  • 累计收到 1 条评论

目 录CONTENT

文章目录

git基本简单命令

Tony
2024-02-21 / 0 评论 / 0 点赞 / 4 阅读 / 1736 字

本文链接: https://blog.csdn.net/lishuangquan1987/article/details/105980114

1.初始化git 目录:

git init

2.添加文件到暂存:

git add ./

3.提交:

git commit -m "first commit"

4.提交之后没有推送,想撤回:

git reset --soft HEAD~1

后面的1表示撤回上一次提交

5.推送:

git push

6.拉取

git pull

7.提交文件到上一次的提交里:

git commit –-amend –-no-edit

0

评论区