Git repository with a local connection to a remote content github repository

: (1) generate keys [here is the future who want to file into the warehouse who will use e-mail], for example,
ssh-keygen -t rsa -C "[email protected] "
after setting his own key file name and password (you can not directly enter password), and the shear key to .ssh directory under the windows user, the file sent to the xxxx.pub github owner to let him join in their github.

(2) the implementation of key initialization:
SSH-key directory just the Add / xxxx

(3) created locally with git bash a warehouse and subsequent operation:
mkdir xxx
cd xxx
git the init
git config --local user.name "xxxx"
git config --local user.email "[email protected]"

(3) in the clone and git bash Push:
clone process:

mkdir specific storage project directory
cd to set a good specific directory
git the init
git clone [email protected] [here need to enter the local key password, if the generated keys are not set do not need to enter]

push process:

specific directory cd / Project
edit files
git the Add.
git the commit "info" -m
git pull --rebase Origin Master [here need to enter the local key password, if not set to generate the key is not required to enter a]
git push -u origin master [here need to enter the local key password, if the generated keys are not set do not need to enter]

Released nine original articles · won praise 17 · views 1082

Guess you like

Origin blog.csdn.net/qq_41821963/article/details/104376811