網站首頁 編程語言 正文
1.開啟一個新終端
2.查看狀態(新修改的是紅色)
git status
3.全部添加到暫存區
git add .
4.再次查看下狀態(都會變成綠色)
git status
5.提交到本地倉庫中
git commit -m "描述文字"
6.查看分支
git branch
7.切換到主分支master
git checkout master
8.再次查看分支
git branch
9.合并分支
git merge 要合并的分支
10.遠程推送
git push
推送全新的分支到碼云:
先切換到要推送的分支,如何執行如下命令
git push -u origin 分支名稱
原文鏈接:https://blog.csdn.net/qq_60248719/article/details/120609854
相關推薦
- 2022-10-27 SQL案例學習之字符串的合并與拆分方法總結_oracle
- 2022-06-14 如何利用Python擬合函數曲線詳解_python
- 2023-04-02 pytorch中關于distributedsampler函數的使用_python
- 2022-04-28 sql?server?累計求和實現代碼_MsSql
- 2022-07-25 詳解docker進行數據掛載的三種模式_docker
- 2022-12-23 利用Python實現文件讀取與輸入以及數據存儲與讀取的常用命令_python
- 2023-01-03 Android?自定義Livedata使用示例解析_Android
- 2024-01-28 在已有git倉庫的情況下,如何提交修改后的文件
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支