First, the preparatory work
We need to install git tools
Download: https://git-for-windows.github.io/
Then you can download and install
Registered a github account, and then create a project warehouse
Second, tell git who you are
git config --global user.name "......" quotes to write your own user name
git config --global user.email "[email protected]" quotes to write your own mailbox
Third, the code will be submitted to the local repository and github
1. Right your project, choose Git Bash Here.
2. The above github cloned into a local repository
clone git https://github.com/fromzore/java.git italics are my own github repository url, into their own just fine
3. Open the file you create new folders to copy things to do in the past
4. keep anything to be added to submit
git add. Do not forget to remember back ' . ', which was submitted on behalf of all the files.
5. submit documents to be submitted to your local repository
commit -m "first jbdc git"
6. Place the code warehouse code submitted to github
git push -u origin master
This step requires you to enter your github account password.