码迷,mamicode.com
首页 > 其他好文 > 详细

git 使用技巧

时间:2017-12-22 03:42:39      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:div   use   nbsp   comm   技巧   message   mes   clean   ranch   

常见命令

git init 将当前文件夹作为一个git 仓库来使用

git add 

git add --all

git add -A

git commit

git commit --message “the message detail” 

git commit -m "message detail"

git status

如果没有pull 代码,那么有几次commit 本地代码就是比远程代码多几个。

pikzas@Pikzas MINGW64 /c/develop/git/study (master)
$ git status
On branch master
Your branch is ahead of ‘orgin/master‘ by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean

git add . 添加所有的文件

 

git 使用技巧

标签:div   use   nbsp   comm   技巧   message   mes   clean   ranch   

原文地址:http://www.cnblogs.com/Pikzas/p/8083052.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!