https://www.youtube.com/watch?v=_uWjGagIQcs
select branch
git checkout test
git branch
delete branch (locally)
git branch -d localBranchName
git branch
git branch -d localBranchName
build
make M=drivers/staging/comedi/
auto-check
./scripts/checkpatch.pl --file --terse drivers/staging/comedi/drivers/ssv_dnp.cverify
git statusgit diff
revert changes (before patch)
git checkout test /xx/xx/xx
commit changes
add file to commit
git add <file>git diff --cached
revert file from commit
git reset <file>finally
#git commit -agit commit -s -v
view the log
git loggit show
git show --pretty=full
who're the maintainers
perl scripts/get_maintainer.pl --separator , --nokeywords --nogit --nogit-fallback --norolestats -f drivers/staging/most/aim-sound/sound.cformat the changes (save to /tmp/)
git format-patch master..test0001-XXX-XXX-XXX-XX.patch
./scripts/get_maintainer.pl 0001-XXX-XXX-XXX-XX.patch
git format-patch -o /tmp/ HEAD^
git format-patch -o /tmp/ HEAD^
check the format of patch mail
./scripts/get_maintainer.pl 0001-XXX...patch
send mail
git send-email --to XX@XX.XX --cc XX@XX.XX -cc ... 0001-XXX...patch
git send-email --annotate HEAD^
git send-email --annotate HEAD^
revert changes (after patch)
git log --oneline14u7289ykdja (HEAD -> test) Staging: XXX: XXX: XXXXX issuegit revert 14u7289ykdja
No comments:
Post a Comment