Clion是一款专门开发C以及C++所设计的跨平台的IDE。它是以IntelliJ为基础设计的,包含了许多智能功能来提高开发人员的生产力。这种强大的IDE帮助开...
Administrator@XTKJ-20210419KS MINGW64 ~ $ cd /d/LocalGit Administrator@XTKJ-20210419KS MINGW64 /d/LocalGit...(master) $ ls -a ./ ../ .git/ 1.txt Administrator@XTKJ-20210419KS MINGW64 /d/LocalGit (master) $...touch .ignore Administrator@XTKJ-20210419KS MINGW64 /d/LocalGit (master) $ ls -a ./ ../ .git/ .ignore...'.ignore' did not match any files Administrator@XTKJ-20210419KS MINGW64 /d/LocalGit (master) $ ls -...Administrator@XTKJ-20210419KS MINGW64 /d/LocalGit (master) $ cd ../ Administrator@XTKJ-20210419KS MINGW64
artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/gitProject (master) $ pwd /d/opt/gitdemo/gitProject...artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/gitProject (master) $ git branch # 查看本地分支 * master...artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/gitProject (master) $ git branch -avv # 查看所有分支 包含远程分支...1 file changed, 1 insertion(+) artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/gitProject (master) $...MINGW64 /d/opt/gitdemo/gitProject (master) $ 切换分支 git checkout artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt
/d/Codes/devops/devops-study (main)$ git branch dev Administrator@ZEXDWFABYXCPTJF MINGW64 /d/Codes/...例:这是应用程序的第一个版本,操作过程如下: Administrator@ZEXDWFABYXCPTJF MINGW64 /d/Codes/devops/devops-study (dev)$ echo..."这是应用程序的第一个版本" > version01.txt Administrator@ZEXDWFABYXCPTJF MINGW64 /d/Codes/devops/devops-study (...dev)$ ls README.md devops.txt version01.txt Administrator@ZEXDWFABYXCPTJF MINGW64 /d/Codes/devops/.../d/Codes/devops/devops-study (dev)$ 使用以下命令将 dev分支推送到远程存储库: Administrator@ZEXDWFABYXCPTJF MINGW64 /d/
#将本地分支与远程建立关联 git branch --track --set-upstream-to=origin/test test ---- 演示 artisan@LAPTOP-JF3RBRRJ MINGW64.../d/opt/gitdemo/gitProject (master) $ git remote remove test #删除远程地址 artisan@LAPTOP-JF3RBRRJ MINGW64.../d/opt/gitdemo/gitProject (master) $ ---- 多个远程仓库演示 第一个仓库 artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo.../gitProject (master) $ artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/gitProject (master) $ git remote...artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/gitProject (master) $ echo 'artisan git git git ' >
/d/Codes/Git/test (slave) $ cat test.txt master:the new code kernel@DESKTOP-67P59AO MINGW64 /d/Codes...add test.txt kernel@DESKTOP-67P59AO MINGW64 /d/Codes/Git/test (slave) $ git commit -m '1.2' [slave...5035bfb] 1.2 1 file changed, 1 insertion(+) kernel@DESKTOP-67P59AO MINGW64 /d/Codes/Git/test (slave...) $ git checkout master Switched to branch 'master' kernel@DESKTOP-67P59AO MINGW64 /d/Codes/Git/test...) $ vi test.txt kernel@DESKTOP-67P59AO MINGW64 /d/Codes/Git/test (master) $ cat test.txt master:the
/d/git-Space (master) $ git branch hot-fix DELL@FRXcomputer MINGW64 /d/git-Space (master) $ git branch.../d/git-Space (master) $ vim hello.txt 添加暂存区 DELL@FRXcomputer MINGW64 /d/git-Space (master) $ git add...[master 019a8dd] my third commit 1 file changed, 10 insertions(+) 查看分支 DELL@FRXcomputer MINGW64 /d/...master 分支上的内容不同 DELL@FRXcomputer MINGW64 /d/git-Space (hot-fix) $ cat hello.txt hello git!...MINGW64 /d/git-Space (hot-fix) $ cat hello.txt hello git!
由于我是把mingw64安装在D:\Users\data\software里面的,所以如图所示: 环境变量配置好,就来验证一下,打开win+R,输入cmd命令,回车。...**", "D:/Users/data/software/mingw64/bin/...../include/**", "D:/Users/data/software/mingw64/bin/.....替换成你自己的mingw64安装路径即可。...在我们刚刚写的c文件页面,按F6即可运行,运行结果如下: 另外,为了节省大家的时间,附上我打包的vscode以及mingw64和.vscode的地址,有问题欢迎在下方留言!
Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master) $ rm test.html Shusheng Shi@PC-of-sss MINGW64...~/mmall/doc/mmall-fe (master) $ ls README.md Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master...) $ vim .gitignore Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master) $ git status On branch...Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master) $ git ca 'first initial' git: 'ca' is not...The most similar commands are clean tag var Shusheng Shi@PC-of-sss MINGW64 ~
举个例子, 我们打开Git Bash ,演示一下 【元数据】的概念 artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo $ git init artisan.../d/opt/gitdemo $ cd artisan # 进入到artisan目录 artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/artisan...(master) $ ls artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/artisan (master) $ echo 'artisan test'...> readme.mf # 写数据到 readme.mf文件 artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/artisan (master) $...cat readme.mf # 查看写入的内容 artisan test artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/artisan (master
The file will have its original line endings in your working directory. 24724@LAPTOP-OCSC7S98 MINGW64...MINGW64 /e/gitworkspace/gitviedo/wechat (master) $ git add . warning: LF will be replaced by CRLF in...24724@LAPTOP-OCSC7S98 MINGW64 /e/gitworkspace/gitviedo $ mkdir pull-demo 24724@LAPTOP-OCSC7S98 MINGW64...MINGW64 /e/gitworkspace/gitviedo $ mkdir git-lhc 24724@LAPTOP-OCSC7S98 MINGW64 /e/gitworkspace/gitviedo...@LAPTOP-OCSC7S98 MINGW64 /e/gitworkspace/gitviedo/git-lhc/gitsdemo (master) $ git commit .
/include/**", "C:/Program Files/mingw64/bin/...../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++", "C:/Program Files/mingw64/bin/...../lib/gcc/x86_64-w64-mingw32/8.1.0/include", "C:/Program Files/mingw64/bin/...../include/**", "C:/Program Files/mingw64/bin/...../lib/gcc/x86_64-w64-mingw32/8.1.0/include", "C:/Program Files/mingw64/bin/..
master..experiment #以图表的方式显示提交合并网络 git log --pretty=format:'%h %s' --graph 演示 artisan@LAPTOP-JF3RBRRJ MINGW64.../d/opt/gitdemo/gitProject (master) $ git branch dev artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/...(master) $ git checkout dev Switched to branch 'dev' artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo.../gitProject (dev) $ ls README.MF src/ artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/gitProject (dev...artisan@LAPTOP-JF3RBRRJ MINGW64 /d/opt/gitdemo/gitProject (dev) $ artisan@LAPTOP-JF3RBRRJ MINGW64
维护这个列表的文件在版本库根目录名字为 .gitignore 初始化版本库,保证刚创建状态 huawei@DESKTOP-JTC012C MINGW64 ~/Desktop/git-repo (master...) $ ls hello huawei@DESKTOP-JTC012C MINGW64 ~/Desktop/git-repo (master) $ ls -a ./ ../ .git/ hello...MINGW64 ~/Desktop/git-repo $ git init Initialized empty Git repository in C:/Users/huawei/Desktop/...git-repo/.git/ 创建文件查看文件类型,发现为untraked file未被跟踪的文件 huawei@DESKTOP-JTC012C MINGW64 ~/Desktop/git-repo...(master) $ echo "hello world" > hello huawei@DESKTOP-JTC012C MINGW64 ~/Desktop/git-repo (master) $
/test-repo/.git/ Administrator@PC-20200713AJJH MINGW64 /d/MyProject/test-repo (master) $ 查看 config 文件...MINGW64 /d/MyProject/test-repo/.git (GIT_DIR!)...Administrator@PC-20200713AJJH MINGW64 /d/MyProject/test-repo (master) $ touch test.txt Administrator...@PC-20200713AJJH MINGW64 /d/MyProject/test-repo (master) $ vim test.txt hello world Administrator@PC...Administrator@PC-20200713AJJH MINGW64 ~/Desktop $ cd test-repo/ Administrator@PC-20200713AJJH MINGW64
/include/**", "D:/Programs/mingw64/bin/...../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++", "D:/Programs/mingw64/bin/...../lib/gcc/x86_64-w64-mingw32/8.1.0/include", "D:/Programs/mingw64/bin/...../include/**", "D:/Programs/mingw64/bin/...../lib/gcc/x86_64-w64-mingw32/8.1.0/include", "D:/Programs/mingw64/bin/..
image-20201108141115324 4.git init Luckly@DESKTOP-D9TVS57 MINGW64 /d/2020study $ git init Initialized...Luckly@DESKTOP-D9TVS57 MINGW64 /d/2020study (master) $ git add ....git status Luckly@DESKTOP-D9TVS57 MINGW64 /d/2020study (master) $ git status On branch master No commits...yet 7.git commit Luckly@DESKTOP-D9TVS57 MINGW64 /d/2020study (master) $ git commit -m 'first commit.../d/2020study (master) $ git pull --rebase gitsrc master 14.提交 Luckly@DESKTOP-D9TVS57 MINGW64 /d/2020study
.> search starts here: D:/SOFTWARE/mingw64/bin/...../lib/gcc/x86_64-w64-mingw32/12.2.0/include D:/SOFTWARE/mingw64/bin/.....D:/SOFTWARE/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/include D:/SOFTWARE/mingw64/bin/...../lib/gcc/x86_64-w64-mingw32/12.2.0/include D:/SOFTWARE/mingw64/bin/.....图片 接下来在D:/SOFTWARE/mingw64/bin/..
/d/Git-Space/SH0720 (master) $ git remote -v Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)...# 克隆远程仓库到本地 基本语法 git clone 远程地址 案例实操 Layne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong $ git clone...Layne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong/git-shTest(master) $ cat hello.txt hello git...hot-fix test --将编辑好的文件添加到暂存区 Layne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong/git-shTest(master...# 拉取远程库内容 基本语法 git pull 远程库地址别名 远程分支名 案例实操 Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master) $
领取专属 10元无门槛券
手把手带您无忧上云