git note

记录git使用中常用的指令,待补充

更改当前绑定的远程地址

查看当前仓库绑定的远程地址:

复制代码
git remote -v

修改远程绑定的仓库地址:

复制代码
git remote set-url origin git@github.com:xxx.git

删除远程绑定的仓库地址

复制代码
git remote remove origin

与远程仓库命名为 origin 并与本地建立连接

复制代码
git remote add origin git@github.com:xxx.git

常用

哪些文件改了、哪些已暂存、哪些还没提交、当前在哪个分支

复制代码
git status
相关推荐
℘团子এ2 小时前
git中,项目怎么更换远程仓库连接地址
git
言之。8 小时前
Git Hooks
git
代码AI弗森9 小时前
Git Bash 与 PowerShell:定位差异、使用场景与选择建议
开发语言·git·bash
森叶10 小时前
Git flow command error: ‘flow‘ is not a git command 问题解决
git
天麓12 小时前
git merge 举例
git
AI_567813 小时前
Git冲突治理白皮书:智能标记与可视化协同的下一代解决方案
大数据·人工智能·git·机器学习
念丶小宇13 小时前
Git常用指令
大数据·git·elasticsearch
CSDN_RTKLIB14 小时前
Git Clone
git
中二病码农不会遇见C++学姐14 小时前
.env 文件是干啥的?为什么不能提交到 Git?
git·学习
CoderJia程序员甲15 小时前
GitHub 热榜项目 - 日榜(2026-02-03)
git·ai·开源·llm·github