📜  git first push - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:58.860000             🧑  作者: Mango

代码示例2
# On server:
mkdir my_project.git
cd my_project.git
git --bare init
# On client:
mkdir my_project
cd my_project
touch .gitignore
git init
git add .
git commit -m "Initial commit"
git remote add origin youruser@yourserver.com:/path/to/my_project.git
git push origin master