欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Git 如何初始化项目

程序员文章站 2022-05-21 09:43:01
...
A simple command-line tutorial:

Git global settings:

git config --global user.name "your user name"
git config --global user.email "your email"

Create git repository:
mkdir Git-Test
cd Git-Test
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/username/you-git-url.git
git push -u origin master

Existing project?
cd existing_git_repo
git remote add origin https://gitee.com/username/you-git-url.git
git push -u origin master
相关标签: git