自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 How to output the message when using the function 'printf'

The stdout stream is buffered,so only when it meets a new line or told to display can it show what you wanna show. So if you want to display your print whenever you execute the related code,you can us

2017-10-27 16:57:46 221

原创 Some basic git commands that you will use usually

GIT OPERATION SUMMARYHere are some tips/questions about the git operation that maybe we will meet in daily work. The structure of the git and the basic commandsHow to use the git aliases in shellExecu

2017-10-27 16:32:51 462

原创 How to switch to the shell you want

Firstly you can show all of the shells you have:chsh -lthen just input the file path of the shell you want,you can enter the shell you want. Here are the common shells you will meet:/bin/sh //the s

2017-10-20 13:53:08 228

原创 How to compare the differences of the same file in the two nodes

Sometimes I want to know the differences of the same file in the two nodes but don’t know the command needed.So I search the answer and finally find it:git diff <commit id 1> <commit id 2> -- <the file

2017-10-19 15:30:59 232

原创 How to roll back/cherry-pick a specific file to a node you want?

roll back a specific file to the node I want:git checkout <the commit id> <file path>merge the specific file I want to the current branch:git checkout --patch <the branch name> <the file path>

2017-10-19 09:53:05 198

原创 What's the difference between update and upgrade

UPDATE: update is used to download package information from all configured sources. UPGRADE: upgrade is used to install available upgrades of all packages currently installed on the system from the s

2017-10-16 14:53:15 309

原创 Something about the git cherry-pick

the function of the git cherry-pick is to merge another local branch’s modification to your current branch:git cherry-pick <commit id>if you meet some conflicts,you can use:git mergetool

2017-10-12 16:51:06 178

原创 the unpack error when I push my modification to the Gerrit

questionI want to push my code modification to the Gerrit for a code view but it failed because of the unpack error.How to fix itpush with –no-thin:git push --no-thin omnigerrit HEAD:refs/for/android

2017-10-12 16:46:37 299

原创 Some frequent operation of the git

delete the modification of the workspace:git checkout -- <filename>hard roll back the code version,it will not store your modification:git reset --hard <commit id>soft roll back the code and will t

2017-10-12 16:39:09 307

原创 How to delete the remote branch in git

You can see the remote branch with this:git branch -r git branch -r | grep <your key word>see the local and remote branch:git branch -r git branch -r | grep <your key word>delete the remote branc

2017-10-12 16:28:55 1031

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除