Code Monkey home page Code Monkey logo

Comments (4)

zhongqin0820 avatar zhongqin0820 commented on June 6, 2024

学习到的新命令...

Here are all the Git commands I used last week, and what they do.

# 合并当前分支与对象分支branch
git merge <branch> 
# 查看修改状态
git status
git diff --stat

# 根据Commits ID回退到某个提交
git checkout <Commits ID>
# 回退后的提交,需要加上-f
git push -f origin master

# 整合本地的细粒度提交(还未提交到远端仓库)
git rebase -i HEAD~4
# 需要对pop up 的提交信息做修改,使用fixup 忽略提交信息,只保持一个pickup提交信息
# 使用--amend保持修改
git commit --amend

from coding-playground.

zhongqin0820 avatar zhongqin0820 commented on June 6, 2024

Git 基础 - 打标签

git tag -a <tagName> -m "Info"
# 推送所有本地标签到远端仓库
git push origin --tags

from coding-playground.

zhongqin0820 avatar zhongqin0820 commented on June 6, 2024

总结一篇关于Git的使用

from coding-playground.

zhongqin0820 avatar zhongqin0820 commented on June 6, 2024

git diff

from coding-playground.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.