# Git - Gerrit push ```shell= git log git status git stash git stash list git format-patch HEAD~1 git apply --check 0001-Fix-cli-showvminfo.patch git apply 0001-Fix-cli-showvminfo.patch git add git commit git commit --amend git push origin HEAD:refs/for/master git push origin master remote.origin.push=refs/heads/*:refs/for/* git config -l git checkout origin/Kernel4.14.140 -b Kernel4.14.140 git push origin Kernel4.14.140 ``` - Git access account ```shell junhao@junhao-VirtualBox:~$ git config --global user.name "junhao.huang" junhao@junhao-VirtualBox:~$ git config --global user.email "junhao.huang@liteon.com" junhao@junhao-VirtualBox:~$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/junhao/.ssh/id_rsa): Created directory '/home/junhao/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/junhao/.ssh/id_rsa. Your public key has been saved in /home/junhao/.ssh/id_rsa.pub. The key fingerprint is: SHA256:Wn27IQFV76Aot9fvy/JL65bSu/c3Nkw3C+NGgfdeOG0 junhao@junhao-VirtualBox The key's randomart image is: +---[RSA 2048]----+ | ... | | . . | | . o . | | + o = | | . S + o +o | | = . + =o+E| | . . o *.B+=| | . .oO+Oo| | oB&**| +----[SHA256]-----+ junhao@junhao-VirtualBox:~$ cat ~/.ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDE1bfjxA7w4y+YZNLIeamqjjxNcanT6CorRd1H+hLbbCzPsxFXw8dKmdfD8uXXByi+Qu66r+4WNWfExjLdHOhHMk456tp4H9+XQiQn0Qc9YCIUy+MIou69UDlsLEg7ffStu70p8mt1rLz8DV/VFYkpv/6rviKos3hBRWXXpmBDG+Lv42Hb9h8d+SYF2WbwYBzGEhkMldUEcBtZebs4kpCszZXdXJAErXuHcI1zb0wt7stBJZizQrsWGTaLnCr2WtjI6bwzraXzzPwaCen+ripx2m2i8DOkyJ8YYn3ivUeoHCZf8tsj1OIqovTdzj3BLoMfezaL3VLZgKemek7q+c39 junhao@junhao-VirtualBox ```