![cover](https://cdn.jsdelivr.net/gh/yubaoliu/assets@image/yubao_blog_cover.png)
GIT: push an repository from the command line
# create a new repository on the command line
```sh
echo "# DORBSLAM" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:yubaoliu/DORBSLAM.git
git push -u origin master
```
# push an existing repository from the command line
```sh
git remote add origin [email protected]:yubaoliu/DORBSLAM.git
git push -u origin master
```
![cover](https://cdn.jsdelivr.net/gh/yubaoliu/assets@image/yubao_blog_cover.png)
No comments