• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

git检出开关分支或恢复工作树文件


Recommended Posts

git checkout 切换分支或恢复工作树文件

切换分支

建议使用git开关指令。

git签出[选项]分支

options

-B3360创建和切换分支;

-B:创建和切换分支,如果存在,则重置它们。

#切换到开发分支

git签出开发

#创建并切换到开发分支

git签出-b开发

#创建和切换分支,如果存在,则重置它们

git签出-B开发

#切换到上一个分支

git结帐-

恢复工作区文件

git签出[提交]文件

如果临时存储区域中有内容,则首先从临时存储区域中恢复该内容。

#恢复index.js文件

git结帐索引. js

# index.js文件将恢复到以前的版本。

git结帐HEAD^指数. js

Link to comment
Share on other sites