The local source code into gitee cloud

Today we practice and submit it to the local code gitee cloud operating code

First, initialization (local repository and the code submitted to the local repository)

Switch to the specified local directory, and then configure the user name and mailbox, and view the status. (Here the local repository was established somewhat arbitrary, for the convenience of management, it is not recommended because the focus of this article is not in this, therefore simplifying)

 

 

Join the local repository: git add *

Submitted to the local repository: git commit -m "added jstree Layer Manager"

Second, the local repository of code synchronization to a remote repository (gitee)

If you already have a remote repository code, origin being given, show already exists, then you should master: git remote add origin

 

According to the help, I chose the master parameters, successfully established contacts.

 

 However, because the remote end have the code, so remote submission was rejected. When prompted, I chose violence submission, this risk, but also expedient. (Have a blog say can be used --allow-unrelated-histories, so I used this parameter)

 

 When prompted, I chose -f, --force

 

 Third, the way, learn to use help

(Please note that help learning, as follows :)

 My another blog post has some science git Bowen Collection: https://www.cnblogs.com/dowtowne/p/10724754.html

Guess you like

Origin www.cnblogs.com/dowtowne/p/12155352.html