![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
文章平均质量分 51
houzhizhen
专注大数据处理和分布式计算。
展开
-
git 从一个源导入分支到另一个源
git 从一个源导入分支到另一个源原创 2022-06-16 17:15:53 · 298 阅读 · 0 评论 -
LGTM? 那些迷之缩写
收集了一些实用的缩写,方便大家日常交流(装B)LGTM — Looks good to me,表示认可这次PR,同意merge 合并代码到远程仓库ASAP -— as soon as possible! 尽快ACK — acknowledgement, i.e. agreed/accepted changeNACK/NAK — negative acknowledgement, i.e. disagree with change and/or conceptRFC — request转载 2022-05-11 09:50:52 · 4778 阅读 · 0 评论 -
Switching remote URLs from HTTPS to SSH
Managing remote repositoriesLearn to work with your local repositories on your computer and remote repositories hosted on GitHub.Adding a remote repositoryTo add a new remote, use the git remote add command on the terminal, in the directory your reposit转载 2021-06-23 15:31:38 · 103 阅读 · 0 评论 -
Checkout Remote Branch
Git is a version control tool that allows you to maintain and view different versions of your application. When a new update breaks your app, Git lets you revert those changes to the previous version.In addition to versioning, Git allows you to work in m原创 2021-05-07 18:30:31 · 667 阅读 · 0 评论 -
Git pushing to remote branch
Git pushing to remote branch原创 2021-05-07 18:28:27 · 279 阅读 · 0 评论 -
HTTPS vs SSH in git
HTTPS vs SSH in git in 5 minutesWhat is HTTPS vs SSH in git? This is the question every newbie keeps asking during their starting day with git and GitHub. In this article, I will provide you an in-depth concept and practical use of those protocols in git原创 2021-03-18 14:59:33 · 286 阅读 · 0 评论 -
git 冲突处理过程
1009 git checkout edition-0.11.21010 git pull1011 git log1012 git checkout stress-v21013 git rebase -i edition-0.11.21014 git status1015 git diff1016 ls hugegraph-core/src/main/java/com/baidu/hugegraph/job/algorithm/cent/1017 ls hugegraph原创 2020-10-15 16:46:55 · 191 阅读 · 0 评论 -
git 把文件恢复到某个commit
例如pom.xml恢复到之前的commit。先用git log 查看恢复到哪个版本。 git reset e8bc520c86f482c6a59ca9ba5ba3bc19e0c99fe6 pom.xml原创 2020-08-19 09:38:28 · 2291 阅读 · 0 评论 -
读懂 diff 命令
iff是Unix系统的一个很重要的工具程序。它用来比较两个文本文件的差异,是代码版本管理的基石之一。你在命令行下,输入:1 $diff< 变动前的文件 > ;diff就会告诉你,这两个文件有何差异。它的显示结果不太好懂,下面我就来说明,如何读懂diff。一、diff的三种格式转载 2018-01-12 15:21:53 · 475 阅读 · 0 评论 -
3.4 Git Branching - Branching Workflows
Branching WorkflowsNow that you have the basics of branching and merging down, what can or should you do with them?In this section, we’ll cover some common workflows that this lightweight branchin转载 2017-07-05 14:39:01 · 317 阅读 · 0 评论 -
3.3 Git Branching - Branch Management
Branch ManagementNow that you’ve created, merged, and deleted some branches, let’s look at some branch-management tools that will come in handy when you begin using branches all the time.The git branch转载 2017-07-05 14:37:22 · 252 阅读 · 0 评论 -
3.2 Git Branching - Basic Branching and Merging
Basic Branching and MergingLet’s go through a simple example of branching and merging with a workflow that you might use in the real world.You’ll follow these steps:Do work on a website.转载 2017-07-05 14:27:46 · 348 阅读 · 0 评论 -
3.1 Git Branching - Branches in a Nutshell
Nearly every VCS has some form of branching support.Branching means you diverge from the main line of development and continue to do work without messing with that main line.In many VCS tools, this is转载 2017-07-05 11:20:29 · 304 阅读 · 0 评论 -
2.8 Git Basics - Summary
SummaryAt this point, you can do all the basic local Git operations – creating or cloning a repository, making changes, staging and committing those changes, and viewing the history of all the changes转载 2017-07-04 17:48:28 · 282 阅读 · 0 评论 -
2.7 Git Basics - Git Aliases
Git AliasesBefore we finish this chapter on basic Git, there’s just one little tip that can make your Git experience simpler, easier, and more familiar: aliases. We won’t refer to them or assume you’ve转载 2017-07-04 17:44:06 · 263 阅读 · 0 评论 -
2.3 Git Basics - Viewing the Commit History
Viewing the Commit HistoryAfter you have created several commits, or if you have cloned a repository with an existing commit history, you’ll probably want to look back to see what has happened.The转载 2017-07-04 10:40:13 · 373 阅读 · 0 评论 -
git checkout to restore local deleted file
git checkout -- ./hugegraph-dist/src/assembly/static/bin/cassandra.in.sh原创 2017-02-27 09:41:14 · 325 阅读 · 0 评论 -
1.1 Getting Started - About Version Control
This chapter will be about getting started with Git.We will begin by explaining some background on version control tools, then move on to how to get Git running on your system and finally how to get i转载 2017-07-03 10:23:31 · 291 阅读 · 0 评论 -
1.2 Getting Started - A Short History of Git
A Short History of GitAs with many great things in life, Git began with a bit of creative destruction and fiery controversy.The Linux kernel is an open source software project of fairly larg转载 2017-07-03 10:30:04 · 274 阅读 · 0 评论 -
1.3 Getting Started - Git Basics
Git BasicsSo, what is Git in a nutshell?This is an important section to absorb, because if you understand what Git is and the fundamentals of how it works, then using Git effectively will probably转载 2017-07-03 10:30:37 · 241 阅读 · 0 评论 -
1.4 Getting Started - The Command Line
The Command LineThere are a lot of different ways to use Git.There are the original command line tools, and there are many graphical user interfaces of varying capabilities.For this book, we will转载 2017-07-03 10:41:25 · 226 阅读 · 0 评论 -
1.5 Getting Started - Installing Git
Installing GitBefore you start using Git, you have to make it available on your computer.Even if it’s already installed, it’s probably a good idea to update to the latest version.You can either in转载 2017-07-03 10:43:09 · 314 阅读 · 0 评论 -
1.6 Getting Started - First-Time Git Setup
First-Time Git SetupNow that you have Git on your system, you’ll want to do a few things to customize your Git environment.You should have to do these things only once on any given computer; they’转载 2017-07-03 10:47:12 · 256 阅读 · 0 评论 -
1.7 Getting Started - Getting Help
Getting HelpIf you ever need help while using Git, there are three ways to get the manual page (manpage) help for any of the Git commands:$ git help $ git --help$ man git-For ex转载 2017-07-03 10:55:28 · 275 阅读 · 0 评论 -
1.8 Getting Started - Summary
SummaryYou should have a basic understanding of what Git is and how it’s different from the centralized version control system you may have previously been using.You should also now have a working转载 2017-07-03 10:56:04 · 247 阅读 · 0 评论 -
2.1 Git Basics - Getting a Git Repository
f you can read only one chapter to get going with Git, this is it.This chapter covers every basic command you need to do the vast majority of the things you’ll eventually spend your time doing with Gi转载 2017-07-03 10:57:34 · 231 阅读 · 0 评论 -
2.2 Git Basics - Recording Changes to the Repository
Recording Changes to the RepositoryYou have a bona fide Git repository and a checkout or working copy of the files for that project.You need to make some changes and commit snapshots of those chan转载 2017-07-03 11:10:30 · 647 阅读 · 0 评论 -
2.4 Git Basics - Undoing Things
Undoing ThingsAt any stage, you may want to undo something.Here, we’ll review a few basic tools for undoing changes that you’ve made.Be careful, because you can’t always undo some of these undos.T转载 2017-07-04 14:38:27 · 249 阅读 · 0 评论 -
2.5 Git Basics - Working with Remotes
Working with RemotesTo be able to collaborate on any Git project, you need to know how to manage your remote repositories. Remote repositories are versions of your project that are hosted on the Inter转载 2017-07-04 17:13:51 · 292 阅读 · 0 评论 -
2.6 Git Basics - Tagging
TaggingLike most VCSs, Git has the ability to tag specific points in history as being important. Typically people use this functionality to mark release points (v1.0, and so on). In this section, you’l转载 2017-07-04 17:34:50 · 350 阅读 · 0 评论 -
git常用命令
我每天使用 Git ,但是很多命令记不住。一般来说,日常使用只要记住下图6个命令,就可以了。但是熟练使用,恐怕要记住60~100个命令。下面是我整理的常用 Git 命令清单。几个专用名词的译名如下。Workspace:工作区 Index / Stage:暂存区 Repository:仓库区(或本地仓库) Remote:远程仓库一、新建代码库# 在当前目录新建...转载 2014-11-25 16:30:41 · 1531 阅读 · 0 评论