码迷,mamicode.com
首页 >  
搜索关键字:branch    ( 1809个结果
git常用命令
$ git branch -d xxxxx 删除本地分支,强制删除就是大写的-D $ git tag 查看当前分支下的标签 $ git fetch origin tag <tagname> 获取远程tag $ git fetch -p 这个命令,它在fetch之后删除掉没有与远程分支对应的本地分支 ...
分类:其他好文   时间:2017-08-11 21:08:49    阅读次数:133
git使用操作
1.删除远程分支 git remote remove origin2.创建远程分支 git remote add origin git@code.admaster.co:site/jice.git3.查看远程分支 git branch -r4.拉取远程分支代码到本地分支 git fetch orig ...
分类:其他好文   时间:2017-08-10 22:16:15    阅读次数:127
poj - 2689 Prime Distance
The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number theoreticians ...
分类:其他好文   时间:2017-08-09 12:53:22    阅读次数:141
git-推送分支
origin为远程仓库名 命令:git push origin local_branch:remote_branch 备注:此命令中,local_branch必须为你本地存在的分支,remote_branch为远程分支,如果remote_branch不存在则会自动创建分支;类似,git push o ...
分类:其他好文   时间:2017-08-08 20:46:00    阅读次数:149
TortoiseGit- 创建本地新分支,提交推送到远程,本地新分支合并到工作分支,提交到远程工作分支等。
整体思路: 创建本地新分支 (create branch) -- 切换到本地新分支工作 (switch/checkout) --提交修改 (commit) -- 推送到远程新分支 (push) --准备合并(明确要把哪个分支合并到哪个分支上,以新分支合并到工作分支上威力)-- 切回到本地的工作分支 ...
分类:其他好文   时间:2017-08-07 15:14:39    阅读次数:277
Git 常用的命令
基本内容: 工作区:就是你在电脑里能看到的目录。 暂存区:英文叫stage, 或index。一般存放在"git目录"下的index文件(.git/index)中,所以我们把暂存区有时也叫作索引(index)。 版本库:工作区有一个隐藏目录.git,这个不算工作区,而是Git的版本库。 理解上述后,使 ...
分类:其他好文   时间:2017-08-06 00:17:29    阅读次数:170
fork开源代码后如何基于某个tag建立自己的branch
应用场景: 在github上fork一个自己想看的开源项目,想基于某个tag来写一些测试demo,然后可以做到版本控制。 方法: 这样即可以看到项目最新的动态,又可以将自己的代码基于某个稳定的版本写的测试代码管理起来。 ...
分类:其他好文   时间:2017-08-06 00:15:51    阅读次数:137
git常用命令
查看分支:git branch 创建分支:git branch 切换分支:git checkout 创建+切换分支:git checkout -b 合并某分支到当前分支:git merge 删除分支:git branch -d 强制删除分支:git branch -D 删除远程分支:git push ...
分类:其他好文   时间:2017-08-04 11:30:28    阅读次数:110
git常用命令以及如何与fork别人的仓库保持同步
简单常用命令1、git status查看当前仓库是否有文件改动a:提示Your branch is up-to-date with 'origin/master'.nothing to commit, working directory clean时候是没有改动b:提示有红色就是有改动,可以提交2、 ...
分类:其他好文   时间:2017-08-03 13:58:27    阅读次数:159
1809条   上一页 1 ... 92 93 94 95 96 ... 181 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!