First, open Git and bind your account

Git config –global user.name git config –global user.name

Git config –global user.email

Then go to your project directory and initialize the project

Git init This is to turn the directory into a repository that Git can manage

At this point you are ready to do git operations on the project

If you have the id_rsa and id_rsa.pub files in your home directory, then you need to create an SSH key under Git Bash

Ssh-keygen -t rsa -c “Your email address”

You can then log on to GitHub, create a repository there, and paste in the key from id_rsa.pub in.ssh

When you add a good SSH key, you can create a lot warehouse, create after making warehouse can use Git with lot of remote connection

Git add. This adds the entire project to the staging area

Git commit -m “add”

Git remote add Origin [email protected]:uphe/ repository name git remote add origin Before running the git pull origin master command, run git pull origin master

Git push -u origin master — git push -u origin master — git push -u origin master

Git push origin master git push origin master git push origin master git push origin master

Tips:

Git remote remove origin git remote remove origin