51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

git备忘录

创建新仓库

echo "# ThinkPHPLogScan" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/safe6Sec/ThinkPHPLogScan.git
git push -u origin master

提交到已有仓库

git remote add origin https://github.com/safe6Sec/ThinkPHPLogScan.git
git branch -M master
git push -u origin master

当前项目(仓库)记住密码

git config  credential.helper store

创建分支

查看分支
git branch
创建tp1分支,并切换
git checkout -b tp1
`切换分支
git checkout master
`

赞(3)
未经允许不得转载:工具盒子 » git备忘录