![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git的基本使用
WI_232995
一枚java程序猿,懂的自然懂。
展开
-
.gitignore 不起作用的解决办法
git rm -r --cached .git add .git commit -m '更新 .gitignore'原创 2020-01-12 13:29:20 · 232 阅读 · 0 评论 -
使用git时 pull报错
将tortoisegit的启动项替换成git的,原因是两者冲突了原创 2017-10-27 12:02:04 · 486 阅读 · 0 评论 -
git中过滤文件.gitignore配置
需要学习视频资料请加qq 1686763368# Eclipse.classpath.project.settings/# Intellij.idea/*.iml*.iws# Mac.DS_Store# Mavenlog/target/pom.xml.tagpom.xml.releaseBackuppom.xml.versionsBackuppom.x...原创 2017-10-18 16:51:55 · 4393 阅读 · 0 评论 -
git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”
对于git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑。这不,某天commit 就遇到了On branch master nothing to commit (working directory clean) 一查意思。你的分支很干净?干净?excuse me?然后git push origin master一下,漫长等待了弹出原创 2017-10-18 15:10:25 · 374 阅读 · 0 评论 -
git认证证书问题解决方案(github clone "Permission denied (publickey). fatal: Could not read from remote reposi)
1.ssh -v git@github.com2. ssh-agent -s3. ssh-add ~/.ssh/id_rsa如果有报:Could not open a connection to your authentication agent. 3.1:eval `ssh-agent -s` 在执行 3.2 :ssh-add ~/.ssh原创 2017-10-07 10:51:55 · 1389 阅读 · 0 评论 -
TortoiseSVN设置比较工具为 Beyond Compare
修改属性为:"C:\Program Files (x86)\Beyond Compare 3\BComp.exe" %base %mine /title1=%bname /title2=%yname /leftreadonly"C:\Program Files (x86)\Beyond Compare 3\BCompare.exe"修改属性为:"C:\Progr转载 2017-09-01 23:14:14 · 493 阅读 · 0 评论 -
Git 提示fatal: remote origin already exists 错误解决办法
今天使用Git 添加远程github仓库的时候提示错误:fatal: remote origin already exists.最后找到解决办法如下: 1、先删除远程 git 仓库$ git remote rm origin2、再添加远程 Git 仓库$ git remote add origin git@github.com:FBing/Java-co转载 2017-08-22 17:06:25 · 635 阅读 · 0 评论 -
如何从Eclipse导入github上的项目源码
1.首先在github.com上申请一个账号,比如笔者的账号为puma0072.Eclipse需要安装egit插件,在Eclipse中选择help-》Marketplace,在search中输入egit,找到后安装即可3.在github上找到你要导入的源码项目,比如笔者以oschina的Android客户端为例,网址:https://github.com/oschina/android转载 2017-08-22 15:58:55 · 1324 阅读 · 0 评论 -
Eclipse中演示Git冲突的解决
1 在user1中的readme.txt文件中先修改,并且commitand push选中user1,右击team—>Commit-à2 在未pull的情况下,修改user2中的readme.txt文件,然后也执行commitand push(过程如上)这时候发现上面有一个红色的图标,这时候点击OK,选中则个项目然后pul转载 2017-08-22 15:48:05 · 284 阅读 · 0 评论 -
eclipse中git分支创建与合并(-)
、team-->switch to -->new branch:2、接下来,我们在自己的分支里面进行文章的更改:3、提交已改动的内容到本地版本库4、将改动push到分支5、这个时候继续操作主干,为了模拟项目真实情况,我们在主干上进行修改,并进行多次提交跟更新;6、这个时候假定分支任务已经完成,我们需要合并分支,首先将分支提交、push到分支之后,转载 2017-08-22 15:47:19 · 379 阅读 · 0 评论 -
使用git和github管理自己的项目---基础操作学习
我是通过看廖雪峰的git教程学习的,真的是极好的,以下是我学习过程中的总结,记录下来,方便自己参考以熟悉git和github的使用。除了廖雪峰的教程,还比较推荐在看完廖雪峰的教程之后,再看这样一篇文章:使用git和github进行协同开发流程,和我的另一篇git的笔记:使用git和github管理自己的项目---真实开发环境的策略 ,深入了解github和git怎么在具体的项目开发中管理项转载 2017-08-22 11:45:37 · 122 阅读 · 0 评论