欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

向自己的github 帐号服务托管代码

程序员文章站 2022-03-07 09:33:07
...
First Create a New Repository
[b]project name :company[/b]

Next steps:
mkdir company
cd company
git init
touch README
git add README #git add . commit all
git commit -m 'first commit'
git remote add origin [email protected]:pobing/company.git
git push -u origin master


Existing Git Repo?

cd existing_git_repo
git remote add origin [email protected]:pobing/company.git
git push -u origin master


clone 一个Repository ,修改后并提交:
 git clone [email protected]:pobing/company.git
git status
git commit -m ""
git push #这样修改后可以直接提交
相关标签: github