Getting started with Git? View help , how to connect to this site under Visual Studio / TortoiseGit / Eclipse / Xcode , how to import the warehouse
Simple command line tutorial:
Git global settings:
git config --global user.name "Xiaohe" git config --global user.email "[email protected]"
The first configuration of the global mailbox is the account nickname whatever
Create a git repository:
mkdir Xshop cd Xshop
above is to create a folder and then enter the folder git init
initialize touch README.md git add README.md if
there is nothing you can add, there is no need to note
git commit -m "first commit" git remote add origin git @ gitee .com: xiaohe4966 / Xshop.git git push -u origin master, just fill in the address
Already have a warehouse?
cd existing_git_repo
git remote add origin [email protected]:xiaohe4966/Xshop.git
git push -u origin master