向自己的github 帐号服务托管代码
程序员文章站
2022-03-07 09:33:07
...
First Create a New Repository
[b]project name :company[/b]
Next steps:
Existing Git Repo?
clone 一个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 #这样修改后可以直接提交