Friday, December 1, 2017

Github quickstart

$ git config --global user.name "Your Name Comes Here"
$ git config --global user.email you@yourdomain.example.com
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
$ eval $(ssh-agent -s)  
$ ssh-add ~/.ssh/id_rsa
---
Add public key vào github
$ clip < ~/.ssh/id_rsa.pub
---
Confirm kết nối
$ ssh -T git@github.com
---
Tạo project trên github
--- 
Vào thư mục cần đưa lên github
$ git init
$ git add .
$ git commit -m "first commit"
$ git remote add origin git@github.com:path/to/project.git
$ git push -u origin master  

No comments:

Post a Comment