首页 > 其他 > 详细

git 使用技巧

时间:2017-12-22 02:40:40      阅读:253      评论:0      收藏:0      [点我收藏+]

常见命令

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 使用技巧

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!