GitHub:
① SSH-Keygen should not be written as: SSH-keygen
② Open, clone ,...... : Cloning is better to establish the correspondence between the local folder and the GitHub server, and then put the content you want to save into this folder.
③ Commit is the GIT library from commit to the local machine, while push is synchronized to GitHub.
④ Use the GitHub User Name (jht) and email address, and the logon password.
⑤ It is very convenient to use the plug-in egit in eclipse. The SSH key previously generated using the command line can be saved on the GitHub website and obtained local connectivity with the GitHub server, in eclipse, you can stop generating keys and use ignore to ignore files that do not want to be synchronized.Use the command $ in git bash SSH -T [email protected] can detect the connectivity between the local machine and GitHub.
6. Unlike CVs and Svn, git does not create a version control folder in each directory, but only creates a repository in the root directory.
7. The project in eclipse also sets up git version control. If no branch is created and the project is in the no-head state, the master score is automatically generated after the first commit.
Symbol in the folder under the Eclipse project "?" Indicates that this folder is in the untracked state, that is, git does not monitor this file. You can use team-> Add to index to add files to the GIT index for version monitoring. You can also use team-> untrack to exclude files from Index Control. Commit the newly added file to the repository, and the file will be in the unmodified state, or this is a staged state. Then modify the file content. The file will be in the modified state.
⑨ Filter out files that do not require version control using the gitignore file: Open the Navigator window, in the project root directory. in the gitignore file, write the directories to be excluded. in the gitignore file.
10. Team-> show in history can view the version history submission records.
For more details, see the GIT plug-in egit User Manual on Eclipse.
Version Control: GitHub hands-on experiment Summary