Intelligent and Interactive Systems

User Tools

Site Tools


collab:git-ms

This is an old revision of the document!


Git on MS Windows

I'm no fan of that OS but still some people are working with it - so here is a short installation tutorial for working with git on a ms windows machine.

Software

You have to install three software packages:

Video Tutorials

PuTTy Installation and Key Generation


msysGit installation


TortoiseGit installation


TortoiseGit Configuration


Clone a Git Repository


Commit, Push and Pull


Generating a ssh key-pair

  • start puttygen.exe
  • press generate and move your mouse in the small screen
  • optional and i don't know if TortoiseGit can handle passphrase protected keys: you can type in a passphrase to protect your key - then you will be asked for it every time you connect
  • save private and public key

Create a empty git repository

Create a local repository - open Windows Explorer:

  • Create an empty folder and right-click into it.
  • Choose “Git Create repository here”
  • Create repository

Repository Settings (right click and go to repository settings)

  1. Git → Config
    • set your username
    • set your email
    • set your full name
  1. Git → Remote (and click on “Add new”)
    • insert url: ssh:/ /username@iis.uibk.ac.at:2222/projects/git/REPONAME
    • PuTTy Key: select the private key you generated

Pulling a repository

right click on the directory (git repository)

  • in the Tortoise-Git Menu select 'Pull'
  • for 'remote' select 'origin'
  • check 'AutoLoad Putty Key'
  • for 'Remote Branch' select or type 'master'

If you want some screenshots and/or a more detailed installation tutorial with screen-shots - have a look at http://dbanck.de/2009/10/08/github-windows-and-tortoisegit-part-1-installing-pulling/

collab/git-ms.1319728660.txt.gz · Last modified: 2018/09/03 14:57 (external edit)