# learnnode **Repository Path**: MrVxiao/learnnodel ## Basic Information - **Project Name**: learnnode - **Description**: 自学记录学习笔记 运维 Python k8s go 监控 工作使用等... - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2025-03-21 - **Last Updated**: 2025-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` 简易的命令行入门教程: Git 全局设置: ​```sh git config --global user.name "15175627632" git config --global user.email "2864048202@qq.com" ​``` 创建 git 仓库: ​```sh mkdir easyviewse cd easyviewse git init touch README.md git add README.md git commit -m "2024-11-07 commit" git remote add origin https://gitee.com/zhouguanyulovejiadanyang/learnnodel.git git push -u origin "master" ​``` 已有仓库? ​```shell cd existing_git_repo git remote add origin https://gitee.com/zhouguanyulovejiadanyang/learnnodel.git git push -u origin "master" ​``` ​```shell 查看当前分支:首先,使用以下命令查看当前所在的分支以及所有分支的列表: git branch 当前分支会被标记为一个星号 (*)。 创建新分支:使用以下命令创建一个新的分支。假设你要创建一个名为 new-feature 的分支: git branch new-feature 这样就创建了一个名为 new-feature 的新分支,但是你还没有切换到这个分支。 切换到新分支:要开始在新分支上工作,需要切换到它。使用以下命令切换到 new-feature 分支: git checkout new-feature 或者,如果你使用的是 Git 2.23 版本或更新版本,也可以使用以下命令: git switch new-feature 现在,你已经切换到了 new-feature 分支,可以在这个分支上进行工作了。 进行更改和提交:在新的分支上进行你的修改和开发工作。当你完成一部分工作时,使用 git add 和 git commit 将更改提交到新分支。 推送分支到远程仓库(可选):如果你希望与他人共享你的分支或将其备份到远程仓库,可以使用以下命令将分支推送到远程仓库: git push origin new-feature 这会将名为 new-feature 的分支推送到名为 origin 的远程仓库中。 现在,你已经成功创建了一个新的分支,并且可以在其中进行工作了。记得在完成工作后合并分支或者进行其他必要的操作。 git add . git commit -m "4 commit" git branch captor7 git checkout captor7 git push origin captor7 ​``` ```