Git 简易的命令行入门教程

简易的命令行入门教程

Git 全局设置:
git config --global user.name “风吹花中花吹风”
git config --global user.email “[email protected]

创建 git 仓库:
mkdir linux-imx-rel_imx_4.1.15_2.1.0_ga
cd linux-imx-rel_imx_4.1.15_2.1.0_ga

git init
touch README.md
git add README.md
git commit -m “first commit”
git remote add origin https://username:password@gitee.com/qq791314247/linux-imx-rel_imx_4.1.15_2.1.0_ga.git
git push -u origin master

已有仓库?
cd existing_git_repo
git remote add origin https://gitee.com/qq791314247/linux-imx-rel_imx_4.1.15_2.1.0_ga.git
git push -u origin master

你可能感兴趣的:(git,github,gitlab)