win7 installation using git client

1. Download msysgit, msysgit is an easy-to-use git tool for the windows platform.
git for windows download address: http://msysgit.github.io/

2. Use "Git Bash" on the source code folder, and set the user name and email of git:

$ git config --global user.name "usr"
$ git config --global user.email "[email protected]"


3. Generate SSH keys

ssh-keygen -t rsa -C "[email protected]"

 
Press 3 Enter, the password is empty. (Do not enter the password)

After that, the window will display the location where the generated rsa file is stored. On XP, the location should be "C:\Documents and Settings\username\.ssh\"; on Win7, the location should be "C:\Users\username\.ssh".

4. Then go to .ssh and copy the contents of id_rsa.pub and paste it into the ssh key of the account settings in the github personal center.

5. Initialize the warehouse version:
git init
Add the file
git add .
Commit the comment
git commit –m 'start project'

Commit to the remote server
git remote add origin [email protected]:username/project.git

Push to origin
git push -u origin master
project.git is the name of the project you created on github

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326316796&siteId=291194637