1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
git init
# remote(ssh)
git remote add origin git@github.com:{github_name}/{repo_name}.git
git status
git add .
git commit -m "{comment}"
# change branch: master -> main
git branch -M main
# make ssl key
# this command will create a public key and primary key at ~/.ssh/ folder
# open ~/.ssh/id_rsa.pub adn copy the content to your
# github account settings -> SSH and GPG keys
ssh-keygen -t rsa -C "{github_account_email}"
# confirm connect
ssh -T git@github.com
# push to your repositry
git push -u origin main
|