Git
整理Git中常用命令
飞翔的红猪
这个作者很懒,什么都没留下…
展开
-
Git 分支管理常用命令整理
Git 分支管理常用命令整理 1. 创建、删除、切换、合并 (1) 创建分支: git branch <branch_name> <branch_name> 表示分支名称 并且,使用 git branch 可以查看当前所有分支: git branch (2) 删除分支: git branch -d <branch_name> (3) 切换分支: git s...原创 2020-02-12 20:11:02 · 268 阅读 · 0 评论 -
Git 远程仓库常用命令整理
Git 远程仓库常用命令整理 1. 关联远程库 在已经创建本地仓库的前提下,想要将github远程仓库与之关联,可以在本地仓库下使用如下命令: git remote add origin git@github.com:<your_account_name>/<repo_name>.git <your_account_name> 代表你的 github 账户名 ...原创 2020-02-12 18:19:20 · 504 阅读 · 0 评论 -
Git 本地仓库常用命令整理
Git 本地仓库常用命令整理 1. 创建本地库 git init 2. 管理修改 git add <filename> --将修改添加到暂存区 git commit -m "xxx" --将暂存区的内容提交到当前分支 git status --查看仓库的状态 git diff <filename> --查看文...原创 2020-02-12 16:52:56 · 430 阅读 · 0 评论