Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
#include <errno.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> | |
#include <netdb.h> |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "chef/freebsd-10.0" | |
config.vm.network "private_network", type: "dhcp" | |
config.vm.synced_folder ".", "/vagrant", type: "nfs" |
--- | |
- hosts: all | |
tasks: | |
- name: install go | |
pkgng: name=go | |
sudo: yes | |
- name: install git | |
pkgng: name=git | |
sudo: yes | |
- name: install mercurial |
Some Time there is a shallow update not allowed issue in your cloned GIT repo.
This means that you have to unshallow your repository. To do so you will need to add your old remote again.
git remote add origin <path-to-old-remote>
After that we use git fetch to fetch the remaining history from the old remote (as suggested in this answer).
git fetch --unshallow origin
And now you should be able to push into your new remote repository.