1, install and configure git:
Configure account and mailbox:
git config --global user.name "Firstname Lastname" (here name can not be used to modify the login name of github)
git config --global user.email "[email protected]"
2, configure the local warehouse
(1)VCS --> Import into Version Control --> Create Git Repository
(2) select the local warehouse location
(3) Once created will generate a file .git at this location
3, submit code to a local warehouse
(1) first add (right-click the item, select add)
(2) commit (right-click the project selection commit Directory)
4, establish a local warehouse and remote repository connection
(1) Open remotes
(2) point "+" to add a remote repository information
(3) fill in the name and address of the SSH remote warehouse
5, uploaded to a remote repository
(1) push to a remote repository (Ctrl + shift + K)
(2) Log in to see if Git has been uploaded