Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A few small commands about Git

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Git status view code status git diff readme.txt view modified file git reset-- hard head ^ rollback to the previous version git reset-- hard HEAD~100 fallback to the first 100th version git reset-- hard 1094a specifies the version to which the fallback (1094a is the version number) git checkout-- file can discard changes to the workspace git reset HEAD can undo changes to the staging area (unstage) Reposition the workspace git diff HEAD-- the readme.txt command can see the difference between the latest version in the workspace and the version library git rm test.txt delete the files in the version library git checkout-- the files in the readme.txt recovery version to the workspace

Note:

Modified: readme.txt

Readme.txt has been modified, but no changes are ready to be submitted

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report