赞
踩
Git(读音为/gɪt/)是一个开源的分布式版本控制系统,可以有效、高速地处理从很小到非常大的项目版本管理。
git init
git config --global user.name "用户名"
git config --global user.email "邮箱"
git clone 需要clone 远程地址
git status
git diff 文件路径
git diff –-cached 文件路径
git checkout –b 分支名称
git checkout 分支名称
git branch
git branch –D temp
git pull
git add 文件路径
git add –A
git commit –m ‘提交说明’
git push origin master
git log
git log --after=“2022-4-1” --date=short --pretty=format:‘%H,%an,%ae,%ad,%s’ --no-merges >> log.txt
git checkout
git add 需要提交的文件路径 也可以加入改动的都是需要提交可以git add .
git pull 拉取
git commit -m “提交备注” 切记commit 之前 先git pull
git push
git merge master (把master的提交合并到当前分支)
git reflog ( 查看分支的提交情况 )
git reset --hard [version] ( 切换到指定版本号 )
git push -f ( 然后强制push )
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。