|
SettingUpGitWindows
# Set up of Git windows StepsThis is an assembly of instructions (from several references given below) which worked for me (Windows 7). Feel free to use it.
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.
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 |