https://github.com/karterzhang https://git-scm.com/ git官网 https://git-scm.com/downloads https://git-scm.com/download/win 下载客户端(含git gui和git bash) https://git-scm.com/book/zh/v2 git官方教程 https://git-scm.com/docs http://www.runoob.com/git/git-basic-operations.html http://www.runoob.com/w3cnote/git-guide.html http://www.runoob.com/w3cnote/git-five-minutes-tutorial.html https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 #git命令 D:\Users\Karter>git --version git version 2.18.0.windows.1 $ git usage: git [--version] [--help] [-C <path>] [-c <name>=<value>] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>] These are common Git commands used in various situations: start a working area (see also: git help tutorial) clone Clone a repository into a new directory init Create an empty Git repository or reinitialize an existing one work on the current change (see also: git help everyday) add Add file contents to the index mv Move or rename a file, a directory, or a symlink reset Reset current HEAD to the specified state rm Remove files from the working tree and from the index examine the history and state (see also: git help revisions) bisect Use binary search to find the commit that introduced a bug grep Print lines matching a pattern log Show commit logs show Show various types of objects status Show the working tree status grow, mark and tweak your common history branch List, create, or delete branches checkout Switch branches or restore working tree files commit Record changes to the repository diff Show changes between commits, commit and working tree, etc merge Join two or more development histories together rebase Reapply commits on top of another base tip tag Create, list, delete or verify a tag object signed with GPG collaborate (see also: git help workflows) fetch Download objects and refs from another repository pull Fetch from and integrate with another repository or a local branch push Update remote refs along with associated objects 'git help -a' and 'git help -g' list available subcommands and some concept guides. See 'git help <command>' or 'git help <concept>' to read about a specific subcommand or concept. #git配置(~/.gitconfig) git config --list $ git config --global user.name "karterzhang" $ git config --global user.email "karter@126.com" 如果使用了--global选项,那么该命令只需要运行一次,因为之后无论你在该系统上做任何事情, Git 都会使用那些信息。 当你想针对特定项目使用不同的用户名称与邮件地址时,可以在那个项目目录下运行没有 --global 选项的命令来配置 #创建仓库 git ini git clone url #创建/更新代码文件并提交 echo "# helloworld" >> README git add README.md git commit -m "first commit" #分支操作 git branch git checkout #查看/配置远程仓库 git remote git remote -v git remote add shortname url 添加一个新的远程Git仓库 git remote add origin https://github.com/karterzhang/mytest.git git remote add origin https://github.com/karterzhang/helloworld.git git remote add pb https://github.com/paulboone/tic.git git remote rename pb paul #上传 git push -u origin master
git,github
原创karterzhang ©著作权
©著作权归作者所有:来自51CTO博客作者karterzhang的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:Linux文件权限及用户和组管理
下一篇:yum源配置(本地镜像)
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Git-Github
linux安装操作git从0开始学Github系列安装git:sudo apt-get install git初始化git仓库:git init查看
linux github git git仓库 -
git 和github
git 和githubGit什么是Git?Git安装初始化Git仓储/(仓库)自报家门把大象放到冰箱要几
git和github git github 版本库 -
Git 操作 GitHub
git push错误
git 用户名 github java 文件名 -
【Git】GitHub 操作
git 结合 github 的使用操作
git github 远程库 本地库 -
【Git】使用GitHub
我们一直用GitHub作为免费的远程仓库,如果是个人的开源项目,放到GitHub上是完全没有问
Github github bootstrap 开源项目