Background: It is often the home computer that has written some demos and wants to upload them to git so that they can be accessed on the company computer.
It's actually very simple, just use the following command:
Environment:windows7+Git command
1. Use DOS to switch to the directory where the code is located. For example: D:\workspace\kafka_demo
2. Enter the following command:
git init git add . git commit -m "first commit" git remote add origin [email protected]:wdj/testInit.git //Bind to the remote warehouse address git pull origin master git push -u origin master
Note:
1. You can use gitBash that comes with dos or git.
2. To do this operation, you need to configure git in advance, that is, the related settings of public and private keys.