随笔分类 -  GIT

摘要:git refloggit checkout -b shnh_base_feature_DCIM-6615 4ed49f89 阅读全文
posted @ 2022-10-14 14:50 tonggc1668 阅读(12) 评论(0) 推荐(0)
摘要:git clone --recursive git@github.com:ClickHouse/ClickHouse.git# or: git clone --recursive https://github.com/ClickHouse/ClickHouse.gitgit clone --recu 阅读全文
posted @ 2022-06-29 14:50 tonggc1668 阅读(39) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/liufuchun111/article/details/79892524 阅读全文
posted @ 2022-02-16 17:59 tonggc1668 阅读(18) 评论(0) 推荐(0)
摘要:You can run these steps via git-bash Checking out master branch git checkout master Tagging master branch to the version you are going to release git 阅读全文
posted @ 2021-01-06 18:17 tonggc1668 阅读(277) 评论(0) 推荐(0)
摘要:git log --author="Marek Romanowski" --since="2019-01-01" --no-merges | grep -e 'commit [a-zA-Z0-9]*' | wc -l git log --since="2019-01-01" --until='201 阅读全文
posted @ 2020-09-22 13:44 tonggc1668 阅读(152) 评论(0) 推荐(0)
摘要:git push origin HEAD:task/xxx-test-local git push的一般形式为 git push <远程主机名> <本地分支名> <远程分支名> ,例如 git push origin master:refs/for/master ,即是将本地的master分支推送到 阅读全文
posted @ 2020-01-15 15:23 tonggc1668 阅读(5792) 评论(1) 推荐(0)
摘要:git中修改上一次提交的commit的message git commit --amend -m "你的新的注释" git push -f 或者 git commit --amend 手动修改 多个commit https://www.jianshu.com/p/ec45ce13289f 阅读全文
posted @ 2020-01-10 11:45 tonggc1668 阅读(1173) 评论(0) 推荐(1)
摘要:git rebase 的使用 https://my.oschina.net/u/920274/blog/3024879 Git: How to copy a range of commits from one branch to another? http://weblog.avp-ptr.de/2 阅读全文
posted @ 2019-08-30 11:09 tonggc1668 阅读(208) 评论(0) 推荐(0)
摘要:https://help.github.com/en/articles/dealing-with-line-endings rm .git/index git reset https://github.com/alexkaratarakis/gitattributes/blob/master/Jav 阅读全文
posted @ 2019-04-24 20:36 tonggc1668 阅读(183) 评论(0) 推荐(0)
摘要:git reset常用的到命令,主要有三种情况。// commit-id为想要恢复到的commit版本1.错误commit后,仅撤销commit;暂存区、工作区内容不变。git reset --soft commit-id 2.错误commit后。仅撤销commit和add;工作区内容不变git r 阅读全文
posted @ 2019-02-28 10:56 tonggc1668 阅读(130) 评论(0) 推荐(0)
摘要:查看git上的个人代码提交量: git log --author="Marek Romanowski" --since="2019-01-01" --no-merges | grep -e 'commit [a-zA-Z0-9]*' | wc -l 查看git上的个人代码量: git log --s 阅读全文
posted @ 2019-02-18 15:42 tonggc1668 阅读(275) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/anhenzhufeng/article/details/77962943 假设你需要合并feature分支的commit76cada ~62ecb3 到master分支。 首先需要基于feature创建一个新的分支,并指明新分支的最后一个commit: 阅读全文
posted @ 2019-01-30 15:14 tonggc1668 阅读(185) 评论(0) 推荐(0)
摘要:https://help.github.com/articles/connecting-to-github-with-ssh/ 创建ssh密钥后,从github clone仓库到本地出现permissoin denied(publickey)错误。 参考官方文档(generating-ssh-key 阅读全文
posted @ 2018-09-27 14:02 tonggc1668 阅读(157) 评论(0) 推荐(0)
摘要:git clone https://usename@xxx.nam.nsroot.net/bitbucket/scm/tm/x.git -b feature/xx git config --global user.name "tonggc1668"git config --global user.e 阅读全文
posted @ 2017-12-26 14:29 tonggc1668 阅读(174) 评论(0) 推荐(0)
摘要:svn属性 svn:ignore logslibs .settings.settings/*targettarget/*.classpath.project 阅读全文
posted @ 2017-10-19 09:41 tonggc1668 阅读(103) 评论(0) 推荐(0)
摘要:1.merge a range of versions 把某些版本合并到当前本地目录。 首先把要改变的目录切换到当前本地目录,然后选择要合并的版本,如果当前版本比要合并的版本高,则不会改变文件。 如果勾选了“反向合并” reverse merge, 即在本地获得返向合并(回滚)后的状态,把某个或某几 阅读全文
posted @ 2017-04-01 16:20 tonggc1668 阅读(214) 评论(0) 推荐(0)