January 6, 2023
The network interface controller (NIC). Also known as a network interface card, network adapter, LAN adapter or physical network interface, and so on. the following commands can be used for list NIC for linux.
...
April 6, 2022
Sometimes we need to set up a proxy from the command line due to network issues. On Ubuntu, the common commands I use that require networking are curl
, git
, apt
, wget
, docker
, maven
, gradle
, npm
, yarn
etc. Some of these commands access proxy settings in environment variables, some of them requires specific configurations. In this post, we are targeting a Debian-based distribution, e.g, Debian and Ubuntu…
...
February 3, 2022
Git rebase can be used as a powerful tool to tweak the git history, this post log basic git rebase usage with an example that removes large files from git.
The Error Message # So, you just tried to run git push, and after taking longer than usual, you get an error trace like this one:
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.
...
January 20, 2022
Side-by-side diffs are more readable to me than in-line diffs.
...
July 17, 2018
基于公司的项目会越来越多,常常需要提取公共的library提供给多个项目使用,但是这个library怎么和git在一起方便管理呢?
我们需要解决下面几个问题:
- 如何在git项目中导入
library
?
library
在其他的项目中被修改了可以更新到远程的代码库中?
- 其他项目如何获取到
library
最新的提交?
- 如何在clone的时候能够自动导入
library
?
解决以上问题,可以考虑使用git的submodule
来解决。
...