Tags » Git

How to migrate a SVN repository to Git

  1. Install Vagrant and download the Ubunut box. I installed Ubuntu/yakkety64
  2. Run Vagrant Up
  3. Run Vagrant ssh
  4. Create the repository you want to migrate in Stash…
  5. 92 more words
Technical Posts

Git work flow E3SM

1) Fork a branch to my own repo on Github

2) Clone a branch from my own repository with submodules

$ git --recursive -b branch/name/here https://username:password@github.com/hydrotian/ACME.git… 198 more words
Programming

Git doesn't add my files, even though I add them

After adding files in a bunch of different ways, the files are still not added to the commit, no matter which way I am trying to add them. 342 more words

Linux

3083 (toodoo intro <1)

24+
#no_comment

#!/bin/bash
#this is toodoo intro version < 1
#it is evaluation, examination, experiment and exercise
#the code is commented in english
#fragile || predictable

#retrieve name
var0=`basename "$0"`;
#output name
echo $var0;
#retrieve arguments to var1 to var5
var1=$1;
var2=$2;
var3=$3;
var4=$4;
var5=$5;

#the arguments array is passed to $self[i]
self[1]=$var1;
self[2]=$var2;
self[3]=$var3;
self[4]=$var4;
self[5]=$var5;

#output and count arguments
j=0
for i in ${self[@]}; do
echo $i
j+=1
done
slength="$j"
size=${#slength}
#echo $COUNTER

#toodoo
#we must check if arguments are set

#boole b1 must be set if argument $1 exists (!-ne)
if [ -n $var1 ]
  then
        b1=false
else
	b1=true 
fi
#boole b2
if [ -n $var2 ]
  then
        b2=false
else
	b2=true 
fi
#boole b3
if [ -n $var3 ]
  then
        b3=false
else
	b3=true 
fi
#boole b4
if [ -n $var4 ]
  then
        b4=false
else
	b4=true 
fi
#boole b5
if [ -n $var5 ]
  then
        b5=false
else
	b5=true 
fi
#now we have all we need

#check the five boolean
if [[ $b1=true || $b2=true || $b3=true || $b4=true || $b5=true ]];
then flag=1
else flag=0
fi
    if [ $flag=1 ]
    then
#whether exists or not output status and argument 
            if [ $b1=true ]
            then
            echo argument ${var1} exists
#other case
            else
            echo argument ${var1} does not exist
            fi
            if [ $b2=true ]
            then
            echo argument ${var2} exists
            else
            echo argument ${var2} does not exist
            fi
		    if [ $b3=true ]
            then
            echo argument ${var3} exists
            else
            echo argument ${var3} does not exist
            fi
            if [ $b4=true ]
            then
            echo argument ${var4} exists
            else
            echo argument ${var4} does not exist
            fi
            if [ $b5=true ]
            then
            echo argument ${var5} exists
            else
            echo argument ${var5} does not exist
            fi
    else
#error message and exit if invalid number of arguments
    echo "Arguments are zero or > 5"
#exit 1
    exit 1
    fi
#array syntax is variable
arrlength=$size-1;
echo $size;

#toodoo
#we want printf(%d total %d arguments, $size, $arrlength);

#toodoo
#one possible direction is (0 || 1 2037 || 2 2038 || 3 203x || 4 || (5 && true))

#exit 0
exit 0
… 7 more words
Experiments

What is Git and Github?

What is Git?

From its website, Git is defined as a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency… 340 more words

Git

Install Git on Mac OS X

There are several ways to install Git on a Mac. In fact, if you’ve installed XCode (or it’s Command Line Tools), Git may already be installed. 657 more words

Git

What is origin/master, or how to update to latest changes in git

When using git, there are few concepts that are hard to grasp at first, but are (in my opinion) required to get fluent with it. It does not matter if you are using GitHub, BitBucket, Gitlab – figuring out how it works (at more than basic commit/push/pull level) will be very useful when you will try to set up your workflow or when you find yourself in a corner. 438 more words

Development