![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
LuckRain7
这个作者很懒,什么都没留下…
展开
-
Git commit 多行信息提交
git commit可接受多个消息标志(-m)来允许多行提交原文地址:https://www.stefanjudis.com/today-i-learned/git-commit-accepts-several-message-flags-m-to-allow-multiline-commits/原文作者:Stephan Schneider在命令行上使用git时,您可能已经使用了消息标志(-m)。 它允许开发人员在调用git commit时内联定义提交消息。git commit -m "my .翻译 2020-07-11 12:51:23 · 5698 阅读 · 1 评论 -
Git 常用命令及应用这一篇就够了(新手向)
1. git 常用命令1.1 常用命令# 初始化gitgit init # 克隆项目git clone [url] # 显示文件状态git status -s # 添加文件到暂存区git add . #添加所有文件到暂存区git add [文件名] #添加指定文件到暂存区# 提交暂存区到仓库区git commit -m [提交信息] # 拉取远程仓库的变...原创 2020-04-17 15:08:24 · 227 阅读 · 0 评论 -
git多人协作
多人协作将远程仓库的代码拉取到本地分支git pull将本地分支更新到远程分支git add .git commit -m "你要提交的内容" 例如:git commit -m "更新了get方法"git push分支合并(这里应用场景是分支 a 和 b,a是自己的分支, b是协作者的分支)#分支a #先进行本地分支的提交git add .git commit -m "你...原创 2019-09-19 23:57:13 · 136 阅读 · 0 评论