1.从命令行创建一个新的仓库
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin http://192.168.0.230:3111/yangjie/test.git
2.从命令行推送已经创建的仓库
git remote add origin http://192.168.0.230:3111/yangjie/test.git
git push -u origin master
git branch 名称 //创建分支
git checkout 名称 //切换分支
==============
git checkout -b 名称 //创建并切换分支
5.拷贝代码
git clone 地址 本地名称
6.提交代码
git add --all
git commit -m “”
git push 地址 分支
7.拉代码
git pull 地址 分支
http://192.168.0.230:3111/laitian/ltcore.git
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin http://192.168.0.230:3111/yangjie/test.git
2.从命令行推送已经创建的仓库
git remote add origin http://192.168.0.230:3111/yangjie/test.git
git push -u origin master
3.修改remote地址
git remote rm 名称
git remote add 名称 地址
git branch 名称 //创建分支
git checkout 名称 //切换分支
==============
git checkout -b 名称 //创建并切换分支
5.拷贝代码
git clone 地址 本地名称
6.提交代码
git add --all
git commit -m “”
git push 地址 分支
7.拉代码
git pull 地址 分支
http://192.168.0.230:3111/laitian/ltcore.git
8.查看remote地址
git remote -v(verbose:详细的,冗长的)
9. 从远程分支克隆代码
git clone -b <branch name> 地址
10. 更新指定文件
git add -u(update) 文件 //只会追踪文件,不会提交新的文件