git备忘录

/ 默认分类 / 0 条评论 / 2259 浏览

本站的所有程序和文章,仅限用于学习和研究目的;不得用于商业或者非法用途,否则,一切后果请用户自负!!

创建新仓库

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

本文最后编辑时间为: 2021-06-23

如本文对你有帮助,点击广告支持一下吧,创造不易。

safe6