📌  相关文章
📜  git 初始提交到远程存储库 - Shell-Bash 代码示例

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

代码示例1
# 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