2018年9月5日 星期三
How to keep forked git repo up to dated?
### 1. Clone your fork:
git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
### 2. Add remote from original repository in your forked repository:
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
### 3. Updating your fork from original repo to keep up with their changes:
git pull upstream master
https://gist.github.com/CristinaSolana/1885435
標籤:
Developer Tools,
Git
2018年4月18日 星期三
Git don't blame, we are asking for context bot blaming people
Nice little trick to avoid blaming mindset
```
➜ ~ cat .gitconfig
[alias]
context = blame
```
```
➜ ~ cat .gitconfig
[alias]
context = blame
```
git bisect
debugging 的時候可以使用,原理就是
1. 先找到確定沒有問題的 commit
2. git bisect 會用二分法切換到中間的 commit,然後就可以 test 是否存在相同的 bug,持續使用二分法直到找到有問題的 commit
1. 先找到確定沒有問題的 commit
2. git bisect 會用二分法切換到中間的 commit,然後就可以 test 是否存在相同的 bug,持續使用二分法直到找到有問題的 commit
2017年11月17日 星期五
加速 git clone
最近網速慢到快死,尤其是 git clone,竟然不到 10kb/s 所以 google 了一下加速的方法
https://codeyarns.com/2016/01/12/slow-speed-on-git-clone/
https://codeyarns.com/2016/01/12/slow-speed-on-git-clone/
訂閱:
文章 (Atom)