git push提交成功后如何撤销回退
我们在使用Git进行版本控制时,有可能会出现这种情况。git push后发现提交的内容不是想要的,这时候我们怎么做呢,提交上去的内容是没有删除按钮的(比如github,或码云)。所以我们需要一些手段将提交上去内容撤销下来。
首先将本地的内容回退到自己想要的版本。回退版本我一般使用
git reset
我们在使用Git进行版本控制时,有可能会出现这种情况。git push后发现提交的内容不是想要的,这时候我们怎么做呢,提交上去的内容是没有删除按钮的(比如github,或码云)。所以我们需要一些手段将提交上去内容撤销下来。
首先将本地的内容回退到自己想要的版本。回退版本我一般使用
git reset
fork 了别人的仓库后,原作者又更新了仓库,如何将自己的代码和原仓库保持一致?
假设远程源仓库为A,自己fork后的远程仓库为B,自己本地的代码仓库为C
给 fork下来的仓库 配置一个 remote源
一般来说从自己远程仓库B去拉代码后就会有remote
使用 git remote -v 查看远程状态。
git remote -v
origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)
pom.xml
1 | <dependency> |
application.properties
1 | mongodb://user:pwd@ip:27017/database = |
集群版mongodb
1 | mongodb://user:pwd@ip1:port1,ip2:port2/database = |
Why Scroll?
Scrolling is the fundamental interaction of the Internet. Having animated elements triggered on scroll is a common practice, but what if you want to take it to another level? For example, websites like r2d3 — A visual introduction to machine learning and NASA: Prospect all features full-scale animations that users can control and interact with through scrolling.
I was really drawn to this form of interaction, which has inspired me to create OKAI — An Interactive Introduction to Artificial Intelligence(AI). Every chapter (except Chapter 0) features full-scale scroll-based animations that visualize and break down complicated concepts in AI. Allowing users to control the pace of the animations give them a sense of control and security when exploring the unknown world of AI principles.
https://okai.brown.edu/chapter1.html
In this article, I am presenting the workflow of how these animations are created and controlled through scrolling.
最近新购入一块3T硬盘,准备划给Linux 系统2T,用来玩数据分析。开始新硬盘的挂载之旅
1 | [root@sloong sloong]# fdisk -l |
可以看到新磁盘为 /dev/sda, 3000G, 扇区 0.5k/4k ,IO大小 4k/4k
从0.10 开始,再无低等级消费者,消息均需通过ConsumerAPI:KafkaConsumer类进行消费,不同的消费场景,不一样的实现,官方提供了7种场景的解决方案:
下面就基于kafka2.0官方文档,一一拆解:
1 | curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.6.tgz # 下载 |
1 | nohup /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data & |
1 | vi /etc/yum.repos.d/mongodb-org-3.2.repo |
1 | [mongodb-org-3.2] |
1 | yum -y install mongodb-org |
Update your browser to view this website correctly. Update my browser now