git log --oneline origin/<branch-name-01>..origin/<branch-name-02>
Transfer git repository with all branches, tags and commit history.
git -c http.sslVerify=false clone --bare <source-git-repository-**>
cd <source-git-repository.git>
git -c http.sslVerify=false push --mirror <target-git-repository-**>
** repository URL may be in formats
- git@server:group/repo-name.git
- https://user:pass@server:group/repo-name.git
- Generate ssh keypair 1
cd ~/.ssh/ ssh-keygen -t rsa -f id_rsa_id1 chmod 400 id_rsa_id1* - Generate ssh keypair 1
cd ~/.ssh/ ssh-keygen -t rsa -f id_rsa_id1 chmod 400 id_rsa_id1* - Create ~/.ssh/config file
#1 server Host github.com HostName github.com User user1 IdentityFile ~/.ssh/id_rsa_id1 IdentitiesOnly yes #2 server Host gitlab.com HostName gitlab.com User user2 IdentityFile ~/.ssh/id_rsa_id2 IdentitiesOnly yes - Upload public keys to corresponding servers.
- Other ssh commands
ssh-add -l