# Git 全局配置
git config --global user.name "username"
git config --global user.email "123@163.com"
# 创建一个新仓库
git clone ssh://git@localhost:30001/name/aaa.git
cd aaa
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
# Push an existing folder:把存在的目录推到git
cd existing_folder
git init
git remote add origin ssh://git@localhost:30001/name/aaa.git
git add .
git commit -m "Initial commit"
git push -u origin master
# Push an existing Git repository:把一个已存在的仓库推到git
cd existing_repo
git remote rename origin old-origin
git remote add origin ssh://git@localhost:30001/name/aaa.git
git push -u origin --all
git push -u origin --tags