CHunky Universe of Vigourous Astonishing SHarepoint :)

Tag Archives: git

Load git into PowerShell

Just a little productivity tip. If you use git on Windows, you probably already have the Github for Windows application. This application adds the Git Shell:


The Git Shell will open a PowerShell window and execute shell.ps1 from the Github directory:


What it won’t do is to load your personal PowerShell profile. I want to use my PowerShell profile that creates some links and adjust the look-and-feel and the promt of the shell. By the way I have published my profile.ps1 as a gist:

I also want to have git in PowerShell available directly. The answer is in the shell.ps1 in the Github folder:


So add this line to your profile.ps1 as I did:

. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")

That’s it. If you haven’t seen the “DOT” in PowerShell scripts, it is called dot sourcing, it will execute the script and keep all the variables and references within the script.

An alternative

If you do not have Github for Windows, there is another way to load git functionality into PowerShell:

.tfignore – “.gitignore” for TFS

I haven’t used TFS so much. But I like it so far. It works smoothly, both TFS 2012 (on premises) and TFS Preview (online). I really appreciate that Microsoft has been inspired from git – the world’s best VCS :). For example .tfignore which works exactly like the .gitignore file. It is nice that the non-classic Microsoft dot notation convention for naming the hidden files is chosen.  So if you have any files to ignore just do it like you did in your git projects. Here is a .tfignore which I use in my SharePoint project for now. I suppose it will be extended soon:

# Ignore Reshaprer files
# Ignore published wsp outputs

Put .tfignore file in the root of your TFS Project. You can of course, let VS2012 create it automatically in the VS2012

.gitignore for .net

At appharbor there is a simple .gitignore file for .net applications. If you use Resharper, you may find the extended version of .gitignore useful. A most comprehensive .gitignore can be found on gitextensions website. (Thanks to Vasiliy Aksyonov for the comment):

#ignore thumbnails created by windows
#Ignore files build by Visual Studio

If git tracks some files you don’t want it to track, just remove these files from the git repo:

git rm --cached file

Next: “.gitignore” for TFS: .tfignore

Team Explorer


Until now I have only worked with svn and git. So I am very curious about the Team Foundation Server and Team Explorer which all talk much about. The best thing is the integration with the issue tracking. I can see all work item, or just my work items.

Another fine feature, at leat if you use codeplex, is the Team Explorer Everywhere.

The Team Explorer Everywhere client works on Windows, Linux, Mac, or Solaris. It provides a command line client and plug-in for Eclipse to access Team Foundation Server. For information on obtaining the client and connecting to the Team Foundation Server please read the Team Explorer Everywhere Client wiki page. You will need the information on the right to connect to the Team Foundation Server in Team Explorer Everywhere.

.gitignore for android

.gitignore is very important. This file tells git which files not to care about. I found a good template for android .gitignore:


The only thing I have added is the last row: .classpath.

Good beginners’ tutorial on android, eclipse and git

Smashing magazine has a pretty good tutorial how to start programming for android using git, github, eclipse and datastorage. I recommend:

Get Started Developing For Android With Eclipse, Reloaded

Set up the Lusites development environment

There is a very good wiki page which describes how to set up the environment. If you think something is missing there, just leave a comment here. Much of that was inspired by a useful tutorial from

Update from git

So if you have an existing copy of the project, just type:

git pull origin master

Or in Egit in Eclipse, right-click on repo and run “Fetch from upstream”.

New files in Eclipse

If there are new classes or files in the project (say you have got the latest version from github into existing workspace in Eclipse). In order for Eclipse to see them, right click on the package and press “Refresh”.

migrera svn till git

Ja, hur gör man om man vill migrera till git? Låt oss säga, man vill använda github.

Jag ska berätta hur man kan göra det. Jag gör det i Linux, förmodar samma gäller Mac.

Det finns en bra manual om hur man migrerar svn till git.

Vi ska gå igenom steg för steg.

Skapa en fil som heter users.txt på ditt Skrivbord:

jmaddox = Jon Maddox <>
bigpappa = Brian Biggs <>
VisualSVN Server = server <>

Det sista är nödvändigt. Eftersom om du har skapat en repository från VisualSVN, kommer det krävas en användarmappning för det med.

Installera git-svn:

sudo apt-get install git-svn

Sedan utför dessa kommandon:

mkdir myproject_tmp
cd my_blog_tmp
git svn init --no-metadata
git config svn.authorsfile ~/Skrivbord/users.txt
git svn fetch

Observera att git-svn (med mellanslag) inte fungerar, det har bytts ut mot git svn.

Sedan är det bara en sak kvar: att klona repository:

git clone . myproject

Syftet med kloningen är att rensa bort svn-grejs. Observera punkten, skriv inte myproject_tmp, för det kommer inte att fungera.

Om du vill skicka det till github. Skapa en repo där, notera namnet. Sedan måste man radera befintliga origin:

git remote rm origin

Sedan lägg till github som origin:

git remote add origin
git push origin master

Om du vill göra checkout från github:

mkdir project_dir
cd project_dir
git init
git pull master
Вула Чăвашла

VulaCV - Чăвашла вулаттаракан сайт

Discovering SharePoint

And going crazy doing it

Bram de Jager - Architect, Speaker, Author

Microsoft 365, SharePoint and Azure

SharePoint Dragons

Nikander & Margriet on SharePoint

Mai Omar Desouki

PFE @ Microsoft

Cameron Dwyer

Office 365, SharePoint, Azure, OnePlace Solutions & Life's Other Little Wonders


Me and My doings!

Share SharePoint Points !

By Mohit Vashishtha

Jimmy Janlén "Den Scrummande Konsulten"

Erfarenheter, synpunkter och raljerande om Scrum från Jimmy Janlén

Aryan Nava

DevOps, Cloud and Blockchain Consultant


SharePoint for everyone


Ryan Dennis is a SharePoint Solution Architect with a passion for SharePoint and PowerShell

SharePoint 2020

The Vision for a Future of Clarity

Aharoni in Unicode

Treacle tarts for great justice

... And All That JS

JavaScript, Web Apps and SharePoint


Mostly what I know and share about...


SharePoint på ren svenska