Switching branches in Git with external dependencies

Has anyone had to deal with the issues of switching git branches in a project that has Maven (or any other external) dependencies? For example, suppose that in one branch I have a maven dependency, and in another I don’t (or have a different version required). Would I have to re-import maven dependencies each time […]

Git Clone under Cygwin hangs

This is something of a mystery. I just installed Cygwin on my Windows machine (Windows 8). The very first thing I tried was git clone (I was cloning a private repository using ssh, rather than anything on github). It announced cloning into blah-blah-blah, and then just froze. I waited several minutes, and nothing. I looked […]

Validate version number on commit in git

We currently store our version number in a file in git. Due to our crazy process, when in stabilisation phase – i.e. code freeze – every commit to the remote repository needs to update the version number in the file. Our remote repository is hosted on Stash. How can we enforce that every commit has […]

Proper way to release in Git with submodules

Im starting to work with git submodules and Im a bit confused. Basically on my project I needed a modified version of hybridauth library. So I forked hybridauth, did my changes and added it as a submodule of my repo. Now when I try to do a release of my repo or simple download a […]

How to make changes once MEANJS app is deployed?

So this may be a basic question, but I am unable to figure this one out. Also this is my first MEAN app, so excuse the ignorance. I have successfully deployed my MEANJS app onto the remote server in a test folder. Everything is working fine. I then cloned the repository on my remote server […]

fatal: packfile name 'server' does not end with '.pack'

I had a non-bare git repository. I wanted to create a bare repository in a server to which I have an SSH access and make it the origin of the older repository. I first created a bare repository in a directory X in an NFS partition by git init –bare. Then I signified in the […]

shallow updated not allowed

I have: Repo A – a templated set of files which represent a good starting point for new repos Repo B – an “instantiated” version of Repo A which I have built and now want to commit to as it’s own repo I am very new to the “shallow clone” process but had read that […]

Branches created by one user not seen by others

I’m working on a project using Visual Studio Online (VSO) and Git on a Visual Studio 2013 I’ve been creating several branches that are showing up on VSO in my account or anyone elses However in Visual Studio, no one can see my branches, and I can’t see anyone elses I’ve checked that all branches […]

Maven Build Number Plugin version not filtered

I’d like to filter my buildNumber (git revision number), provided by the buildnumber-maven-plugin in a property file, so I can access it from my software. I got the following pom: <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <parent> <groupId>xxxx</groupId> <artifactId>xxxx</artifactId> <version>1.0.0-SNAPSHOT</version> <relativePath>..</relativePath> </parent> <artifactId>xxxx</artifactId> <build> <resources> <resource> <directory>src/main/resources/</directory> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <version>1.3</version> […]

Heroku push is being rejected, after reinstallation of OS?

I’m following the tutorials made by Michael Hartl, but I tend to distro hop a lot on Linux. I cloned my repo from github and I’m doing good with that. However I can’t push to heroku anymore and I’m not sure why exactly… Here is the commands I’m trying to run: $ bundle exec rake […]

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