My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
SettingUpGitWindows  
Updated Oct 21, 2013 by iqbalras...@gmail.com

# Set up of Git windows

Steps

This is an assembly of instructions (from several references given below) which worked for me (Windows 7). Feel free to use it.

  1. Install Git (for windows) from code.google.com http://git-scm.com/downloads
  2. Create a new directory in your desired drive as the project folder.
  3. Open windows Command prompt and navigate to the created project folder.
  4. Execute inside the folder :
  5.       git config --global user.name "Your Name Comes Here"
          git config --global user.email you@gmail.com
    
          git init  //To initialize a Git working directory.
    
          git clone https://iqbalrasheed1987@code.google.com/p/gantt-chart-ext-features/  //For fetching the latest copy of this project.
          
    
          //(or) for a new project or adding a new file to an empty repository use the command below:
    
          git add .   // There is a dot in the command to add all the files
          git commit -a   // To initialize the index with all the modified files
          git status // To see the status of the commit index. If it returns a fatal error you need to init a git reposity first (line 3)
    
          git push origin master // this will push all the files to the remote repository
    
    // Git will ask the password for the code.google.com "project account" NOT your mail account.
  1. If you don't want to use the password manually every time you commit a change then follow steps below:
      git config --list // lists the config status

// check if the remote.origin.url key has the value username@code.google.com/p/project-name then we need to remove the username 

      git remote set-url origin https://code.google.com/p/gantt-chart-ext-features

// Create a file named _netrc in a drive with the following items

      mkdir c:\user\
      set HOME=c:\user\
      cd c:\user\
      echo machine code.google.com login yourEmail@gmail.com password yourProjectPassword> %HOME%\_netrc 

// now you can commit your changes without manually typing in the password everytime!.

The commands illustrated in this page is inspired from the references cited below. Thanks to the original authors. I have just paraphrased in the order which I used.

References

  1. https://www.kernel.org/pub/software/scm/git/docs/gittutorial.html
  2. http://codeonfire.cthru.biz/2011/09/13/netrc-for-googlecode-on-windows/
Powered by Google Project Hosting