Tag: version control

git branch -r not showing all remote branches

I don’t see all my remote branches with command git branch -r origin/HEAD -> origin/master origin/master But then I use git ls-remote origin the output is e7ae5a2136ac27528cb201040f432faf29034d67 HEAD a085ebd1c7f0477cee4bbad92810e057f5899b6b refs/heads/bundles c9b34c60a18278e02489a2f232604f8e1bd295ca refs/heads/bundles_new 8eca519636f2dfe8a6b5d7f8e8021c5fc2a72fd7 refs/heads/compression So I’m trying to fetch all these branches git fetch origin remote: Counting objects: 22417, done. remote: Compressing objects: 100% (8478/8478), […]

git-svn problems creating tags

First off, I have no problems at all pushing updates to the origin trunk. If I try creating tags or branches, I get the following error: git svn tag 4.0.6 Copying http://plugins.svn.wordpress.org/xxx/trunk at xxx to http://plugins.svn.wordpress.org/xxx/tags/4.0.6… Authorization failed: POST of ‘/!svn/me’: authorization failed: Could not authenticate to server: rejected Basic challenge (http://plugins.svn.wordpress.org) at /usr/local/Cellar/git/2.4.1/libexec/git-core/git-svn line […]

What does 'Checking out files' stat indicate while switching to master branch in Git world?

I am using git bash. I created a brand new local git repository from a brand new public repository ( means it just had .gitIgnore file. no code) I branched off from my local master repository to a new repository ‘FromClearcase’ using: git branch FromClearcase git checkout FromClearcase I pasted 49 files of code into […]

What is a recommended way to manage git patch queues in unrelated repositories

So, I have many repositories I need to manage patchsets in git. I primarily work on what I’ll call issue-branches (Unsure if thats an official terminology for git, but its short-lived branches for each issue). I do have a habit of rebasing if they end up taking longer to iron out, or even squashing if […]

Merge from upstream with no upstream history

I have a parent repo containing my project, and a sub repo which is based off this project. The parent repo has tagged releases, and the sub repo is based off one of these tags. For example: parent v1.0—v2.0—v3.0 \ child—[changes] Unfortunately when the child repo was created, the parent history was removed and the […]

Git 'pack-objects died of signal 13' when pushing to origin

Whenever I work on a branch other than master and try to push to that branch I get this error: User-MacBook-Pro:htdocs user$ git push origin quotes Counting objects: 2494, done. Delta compression using up to 4 threads. Compressing objects: 100% (2246/2246), done. Write failed: Broken pipe9/2455) fatal: The remote end hung up unexpectedly error: pack-objects […]

Version Control for analytic projects

I’ve found several things about how to manage a data science projet with GIT but I didn’t find something about how to manage a set of projects. In 90% of the case I’m working alone and over the month a lot of people ask me to check: the performance of our marketing operations the impact […]

Undo discarded changes in SourceTree

I am using SourceTree and i had some modified files under “Working Copy Changes” section which were being tracked as shown by the yellow icon in the image. But i discarded those changes. Now how to revert those changes?

GIT how to create patch from non consecutive commits

I have several commits in a branch “feature-1” that are part of some feature (lets call it feature X). In the branch exists also several merges from master, that means that feature X could be spread between other commits. Also imagine that rebase was not used, so we can have something like: J – K […]

Git track how a commit got into a branch

Is there a way to track how a commit got into a branch? I’m working with git and github enterprise. A couple of days ago, I came across a situation where a commit appears to have gotten from a feature branch (“f“) into our first staging branch (“s“), which is as expected (my colleagure merged […]

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