github create your own project and push

1. Create a test project to install gitbash

2. Create ssh-key

ssh-keygen  -t rsa -C "[email protected]"
cd .ssh

View public key and copy the public key to github

3. Verify ssh-key is in effect

ssh -T [email protected]

4. Configure the user name and mailbox

git config -global user.name "username"
git config -global user.email "email address"

5. Create work

mkdir test
cd test
git init
git  pull  [email protected]:yundd/test.git
git remote add origin [email protected]:yundd/test.git
echo "hello world">test.txt
git add   test.txt
git commit -m "写入提交内容的介绍"
git push [email protected]:yundd/test.git

Guess you like

Origin www.cnblogs.com/yundd/p/11616351.html