The IDEA project code submitted to Github

1, git installation configuration


1, download git

https://git-scm.com/download/win

2, installation

Fool can be installed, remember the installation directory

3, Configuration

image

2, the configuration git SSH


1, first apply a GitHub account

2, generating SSH keys for: Git command line, run: ssh-keygen -t rsa -C "your email address";

image

3, find the C: \ Users \ yefengyu \ .ssh directory, copy the contents of id_rsa.pub inside

image

3, configuration Github


1, log on GitHub

2, set up to find Github

image

3, find local SSH configuration

image

4, click on the SSH adn GPG keys, will appear the following page

image

5, copy and paste the contents of id_rsa.pub to the following key inside, title can easily named, then click on the button below.

image

4, IDEA configuration


1, the path configuration git

image

2, create a new project, for example, we want to be pushed to the following project GitHub above:

image

3, log on GitHub, a new design-pattern warehouse

image

4, open the folder where the project, in the folder on the right to run: git bash here, execute: git init

image

In fact, this time to open the idea, you can right project, git-> git add

image

And then commit directory, pay attention not to submit certain documents

image

This time it can push to a remote repository

image

Note URL

image

After clicking OK

image

Need to enter a user name and password after clicking PUSH:

image

After the correct input, the code can be pushed to GitHub above to see again:

image

Note: not submitted before any code, URL is where you can see

image

After submitting you can see from here

image

Guess you like

Origin www.cnblogs.com/ye-feng-yu/p/11108696.html