编程知识 cdmana.com

Git - 《 GitHub 》

1. initialization git

git init

2. Generate SSH secret key

 Just select one of the builds 
1.ssh-keygen -C ' Yours @mail' -t rsa

2.ssh-keygen -t rsa -C ' Yours @mail'

3. Set user name and mailbox

1.git config --global user.email "you@example.com"  
2.git config --global user.name "Your Name"

3. see 
git config user.email
git config user.name

4. have a look ssh state

ssh -T git@github.com

5. Turn the folder into Git A manageable warehouse - The first step here is ! Omission

6. Add project to warehouse

git add .

7. Submit the project to the warehouse

git commit -m " The comment "

8. stay GitHub Create a warehouse on and associate it with a local warehouse

git remote add origin https://github.com/yourname/filename.git
git remote add origin git@github.com:yourname/filename.git

9. If you create a warehouse at the same time readme file , First merge the content

git pull --rebase origin master

10. Push all the contents of the local library to the remote warehouse

git push -u origin master

11. The next time you continue to push files to the warehouse, you can omit -u command

git push origin master

12. If you want to change the warehouse

git remote rm origin

 

版权声明
本文为[XFlyaa]所创,转载请带上原文链接,感谢

Tags git github
Scroll to Top