git 常用命令

7-15 1,055 views

删除本地和远程tag

git tag -d v0.0.1
git push --delete origin v0.0.1

add and push tag

git tag v0.0.2 -m "theme and styles"
git push origin v0.0.2
# push all the tags
git push origin --tags

查看库的地址

git remote -v

添加的缓冲区

git add main.cpp
git add *
git add *.cpp

撤销添加

git reset *.cpp

提交到本地

git -commit -m "modify sth"

推送到远端

git push

恢复本地修改

git checkout -- filename

常见错误

warning: push.default is unset; its implicit value is changing in Git 2.0 from 'matching' to 'simple'. To squelch this message and maintain the current behavior after the default changes, use

error setting certificate verify locations:

git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"

or — not really recommended — you may choose to switch off SSL checks completely by executing:

git config --system http.sslverify false

git log

git log -2

分支

列出本地分支

git branch

列出远程分支

git branch -r

列出所有分支

git branch -a

根据日志ID创建分支

git branch origin/v1.0 2582ef3f2dffd4b000d556e48464be24d90ddc90

切换到 origin/v1.0 分支

git checkout origin/v1.0

typescript 源码分析

https://www.cnblogs.com/xuld/p/12180913.html

阅读全文

flutter_gen config

const configDefaultYamlContent = ''' name: UNKNOWN flutter_gen: Optional output: lib/gen/ Optional line_length: 80 Optional parse_metadata: false ...

阅读全文

redis 函数的含义

您提供的函数列表是一个 Redis 客户端 API 的部分实现,通常用于与 Redis 数据库进行交互。以下是这些函数的简要解释,按类别进行分类以帮助理解其功能和用...

阅读全文

2 条评论

  1. I’ve been surfing online more than 2 hours today, yet I never found any
    interesting article like yours. It is pretty worth enough for me.

    In my view, if all site owners and bloggers made good content as
    you did, the web will be much more useful than ever before. http://www.yahoo.net

欢迎留言