Git 基础pass
commands
有时提交不成 冲突了 请用 git rm -f filename …or create a new repository on the command line echo "# learn-english" >> README.md git init git add README.md git commit -m "first commit" git remote add origin [email protected]:evan886/learn-english.git git push -u origin master …or push an existing repository from the command line git remote add origin [email protected]:evan886/learn-english.git git push -u origin master
打标签
在Git中打标签非常简单,首先,切换到需要打标签的分支上: $ git branch * dev master $ git checkout master Switched to branch 'master' 然后,敲命令git tag <name>就可以打一个新标签: $ git tag v1.0 可以用命令git tag查看所有标签: $ git tag v1.0