Git 常用命令

2017-03-16  本文已影响0人  realgods

全局配置

创建空的远程仓库

git clone RemoteRepoSSHAddress
cd YourFolder
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

用本地目录创建远程仓库

cd YourFolder
git init
git remote add origin RemoteRepoSSHAddress
git add .
git commit
git push -u origin master

分支命令

上一篇下一篇

猜你喜欢

热点阅读