Notation anomaly of symmetric/asymmetric between rev-list and diff

I am trying to understand the rationale (if there is one) for the difference in notation between git diff vs. git rev-list or git log. Clarification: I understand what each command does, as I explain below. I am only looking for an explanation as to why Git would use the same notation in two different […]

Git clone on server and auto pull

i have an existing git repository i want to clone it on google compute server. the first thing i need to do is getting a clone on server of existing repo, but when i run the git clone it shows this error #git clone ssh://git@github.com:USER/REPO.git . Initialized empty Git repository in /home/PATH/public_html/.git/ ssh: Could not […]

git format-patch in multiple-branch setup

1. Abstract My ultimate goal is to bring some Client’s changes done on a Client’s branch in the linux-kernel repo to another linux-kernel repository, given the fact that both have a common base tag (e.g. v4.2, from which the Client’s branch has been initially created). For that I am trying to create a stack of […]

git shallow cloned repo

I’m trying to fork a large repository and I really don’t care about most of the history from the upstream repository, just the tips of a couple branches that I want to branch off for my own purposes. Using a shallow clone is sufficient locally but then I can’t push it to another repository. I […]

Update tagger of annotated tag

I have a git repo that came over from svn. I converted the tag branches to actual git tags. I have set $GIT_COMMITTER_NAME, $GIT_COMMITTER_EMAIL and $GIT_COMMITTER_DATE to $GIT_AUTHOR_NAME, $GIT_AUTHOR_EMAIL and $GIT_AUTHOR_DATE for all commits, using git filter-branch. What I’m left with now, is that the Tagger of an annotated tag, is still different from the […]

Configuring Maven Release Plugin for Git

I am trying to learn how to use the Maven Release Plugin. I have made my pom to look like: <modelVersion>4.0.0</modelVersion> <groupId>com.sample</groupId> <artifactId>sample-project</artifactId> <version>1.0-SNAPSHOT</version> <scm> <connection>scm:git:git@github.com:sample/sample-project.git</connection> <developerConnection>scm:git:[fetch=]central[push=]origin</developerConnection> <url>https://github.com/sample/sample-project</url> </scm> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5.3</version> </plugin> </plugins> </build> central is configured to be the original repo and origin is the fork of the repo. When […]

Bamboo trigger doesn't fire on fitered repository

I have a huge project located in git repository. It’s a maven project that contains prenty of modules, most of them can be built and deployed separately, some of them are dependent of others. I configured git repository for buid plan and it works fine – once I pushed my changes, bamboo build is triggered. […]

git mirroring to GitHub and filtering private files

Currently working on a project. We want to open-source our day-to-day commits with full info (author, etc…) while filtering out some specific private folders. Let’s say I commit A/file1 and B/file2 in branch master, I would like to have it mirrored on GitHub with B folder filtered (this commit would only have A/file1). One way […]

Difference between git reset –hard <filename> and git checkout — <filename>

As far as I understand, git reset –hard will update in the index and working directory to whatever the HEAD points to? Git checkout — will update in working directory to whatever that file state in the INDEX is? So if is unstaged, then they will do the same thing (change the file in the […]

pip install from a subdirectory of git repo in non-editable mode

The following works fine: user@host ~/test> pip install -e ‘git+http://git.mydomain.com/project.git#egg=project-sdk&subdirectory=sdk/python’ But the following fails: user@host ~/test> pip install ‘git+http://git.mydomain.com/project.git#egg=project-sdk&subdirectory=sdk/python’ Collecting project from git+http://git.mydomain.com/project.git#egg=project-sdk&subdirectory=sdk/python Cloning git+http://git.mydomain.com/project.git to /tmp/160806751.tmpdir/pip-build-XR8vJn/project-sdk remote: Counting objects: 180, done. remote: Compressing objects: 100% (135/135), done. remote: Total 180 (delta 46), reused 0 (delta 0) Receiving objects: 100% (180/180), 52.71 KiB | 0 […]

Git Baby is a git and github fan, let's start git clone.