git 基本操作

来源:互联网 发布:java记事本代码讲解 编辑:程序博客网 时间:2024/06/06 18:09

git 基本操作命令

更新本地代码

暂存本地代码

git status -sgit stash

更新代码

git pull origingit status -s

取出暂存代码

git stash popgit status -s

合并代码或解决冲突

重新添加代码到本地版本

git add -A

提交变动到本地代码仓库

git commit -m 'description for the commit'git status -sgit log -p

提交本地代码到远程仓库

git push origin

更多文章请访问 http://blog.wxcsdb88.com/