Helpful git commands

Lane
1 min readFeb 19, 2020

If you are developing branch new-feature, and made a commit my commit.Someone else pushed to master.

Then you can do these to prevent generating this information (Merge branch ‘master’ of github.com:example/your_repo into new-feature).

git checkout new-feature
git pull --rebase origin master

Something git clone is too slow.

You can accelerate it by setting bash shell:

export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087; ,

and then start ShadowSocks .

Then git clone https://github.com/your/repo.git . Remember to use https: instead of git@ .

--

--

Lane
0 Followers

Ruby, JavaScript and Python developer.