GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Gah0/Scripts: Python、C/C++ and PCB,cJson,modbus,My college Project...cloud space [ focus push ]

BranchesTags
Open more actions menu

Latest commit

 

History

163 Commits
163 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
C++
C++
 
 
C
C
 
 
C51
C51
 
 
Linux Programing
Linux Programing
 
 
PCB design
PCB design
 
 
Python
Python
 
 
Watermelon(Q)-9SE
Watermelon(Q)-9SE
 
 
html
html
 
 
kernel patch
kernel patch
 
 
matlab
matlab
 
 
stm32
stm32
 
 
README.md
README.md
 
 
clang.sh
clang.sh
 
 
clash.sh
clash.sh
 
 

Repository files navigation

bad repository

Hello, here is my work environment space

i'm a college student and a low-level developer.

i love use code to Automate work environment.

sometimes i change my work exprcise on home and school.

the beginning of creating I forgot to set the repository up as private ;p

git-tips

git reset --soft/mixed/hard解释

if i have some commits need to squash D into C commit

A - B - C - D (master)
	↑
	HEAD
		
{ work direatory (unstage)      `git add ..`
{ stage          (staged)       `git commit -s..`
soft 保持暂存区 (keep stage) 是提交C,D的文件仍然被跟踪,可以提交修改。

HEAD point to C, the stage/index matches C, and D's changes on work diretory.

当使用 git reset --soft B 时,master 和 HEAD 指向 B,但是依然保留了 C 添加跟踪的文件,此时会将这些文件放入暂存区中,显示为已缓存。同时工作区中修改的文件,显示为未缓存。

mixed 保持工作区(keep work direatory)不变,重置索引。

当使用 git reset --mixed B 时,master 和 HEAD 指向 B,这时候 C 添加跟踪的文件仍然会在,但是会显示为未缓存(不是版本控制),而当前工作目录中的修改内容,仍然会在,显示未缓存的状态

(如果不知道怎么选,默认使用 mixed)

hard 重置索引和工作区(Discard all changes)

当使用 git reset --hard B 时,C 添加跟踪的文件,以及当前工作目录中的修改内容,都会丢失。

About

Python、C/C++ and PCB,cJson,modbus,My college Project...cloud space [ focus push ]

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.