git repository practice of recording local connection aliyun

Open git bash

ssh -keygen -t rsa "[email protected]" local production // ssh keys, there will be twice entered -C, will directly enter the default file name

In the C / User / username / .ssh two files are generated and id_rsa id_rsa.pub (public key), to copy the contents id_rsa_pub ssh key git warehouse (the new one)

Local git bash on:

1、git --global user.name="xxx"

2、git --global user.email="email address"

From the drop-down file git repository: git -pull depot_path

upload files:

1, git add. (Dot represents all the contents of this catalog, you can also specify a specific file)

2, git common -a -m "comment this submission"

3、git push

note:

1, .git files in the local repository directory generally do not "move"

2, connection problems may occur not remote repository, rebuild ssh public key to ensure that the correct public key to be able to try again.

3, the connection will add a known_hosts file directory under .ssh

Guess you like

Origin www.cnblogs.com/ycthink/p/11093293.html