make diff git as commit
$ git diff HEAD^^ HEAD main.c
$ # show diff between HEAD(current commit) and HEAD^^(two commits back) for main.c
git diff --name-only SHA1 SHA2A simple way to do it is:
create and checkout branch tmp at branch_a (git branch tmp branch_a && git checkout tmp)
git reset --soft branch_b
git commit
that commit must have all the diff
Also in Shell:
- how to get divided number in mac terminal
- linux check disk space
- wget git bash
- install laravel
- list config git
- run jar file command line
- canging branch in git
- git merge branch to master
- youtube api python
- run specific script with an other user linux
- how to check which packages homebrew has installed
- how to install react spring
- hyper-v powershell add scsi DVD
- kubernetes copy files to persistent volume
- install mvc 5.2.4 nugget console
- install homebrew on mac
- install seaborn
- install glesv2 and egl library
- how to install lightgbm on mac
- authorization github api
- git delete remote branch error: unable to delete remote ref does not exist
- ufw allow postgresql
- how to see all branches in git
- install pygame