761 B
761 B
title | updated | created |
---|---|---|
Default remote and branch | 2021-05-05 12:32:22Z | 2021-05-04 14:58:11Z |
GIT
Default remote and branch
cat .git/config // wil list the remote and branch
git add . // adds all modifications to the staging area
git commit -m "some text"
git push // push all modifications to the upstream repository
make initial ssh key:
register the rsa.public key on remote host
ssh-keygen -t rsa
add global username and email address
git config --global user.name "Your Name"
git config --global user.email "youremail@yourdomain.com"
Test connection
- ssh -T git@github.com
- ssh -T git@bitbucket.org enter a phrase password