| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| student:eclipse:git [2021/08/03 11:26] – bernstdh | student:eclipse:git [2025/08/21 16:20] (current) – bernstdh |
|---|
| The "URI", "Host", "Protocol", and "Port" will vary with the Git host. | The "URI", "Host", "Protocol", and "Port" will vary with the Git host. |
| |
| You will also be asked to provide a "User" and "Password" for that host. If you select "Store in Secure Store", Eclipse will save this information for you locally, and you will not need to provide it each time you push. Otherwise, you will need to authenticate yourself each time you push. | You will also be asked to provide a "User" and "Password" for that host. Because of recent security enhancements, you must enter your "Personal Access Token" in the "Password" field, not your GitHub password. (If you select "Store in Secure Store", Eclipse will save this information for you locally, and you will not need to provide it each time you push. Otherwise, you will need to authenticate yourself each time you push.) |
| |
| |
| The easiest way to clone a remote repository is to: | The easiest way to clone a remote repository is to: |
| |
| - Open the [[ #opening_the_git_perspective | Git Perspective ]] | - Open the [[ #opening_the_git_perspective | Git Perspective ]]. |
| - Click on "Clone a Git repository" | - Click on "Clone a Git repository". |
| - Enter the "URI", "Host", "Repository path", and "Protocol" | - Enter the "URI", "Host", "Repository path", and "Protocol". |
| - Enter your authentication information for the Git server | - Enter your authentication information for the Git server. (Because of recent security enhancements, you must enter your "Personal Access Token" in the "Password" field, not your GitHub password.) |
| - Select the appropriate branch (probably the main branch, the name of which may vary but should be apparent from the context) and click on <key>Next</key> | - Select the appropriate branch (probably the main branch, the name of which may vary but should be apparent from the context) and click on <key>Next</key>. |
| - Enter the appropriate local directory for the "Destination", the appropriate "Remote name" (probably ''origin''), and click <key>Finish</key>. | - Enter the appropriate local directory for the "Destination", the appropriate "Remote name" (probably ''origin''), and click <key>Finish</key>. |
| |
| ^ ''git'' Command ^ EGit Equivalent ^ | ^ ''git'' Command ^ EGit Equivalent ^ |
| | ''add'' | Right-click on the file and then <key>Team+Add to Index</key> | | | ''add'' | Right-click on the file and then <key>Team+Add to Index</key> | |
| | ''clone'' | Open the Git Perspective and click on {{eclipse_git-clone.png}} | | | ''clone'' | Open the Git Perspective and click on {{eclipse_git-clone.png|Clone a Git Repository}} | |
| | ''commit'' | Right-click on the project/files and then <key>Team+Commit...</key> | | | ''commit'' | Right-click on the project/files and then <key>Team+Commit...</key> | |
| | ''pull'' | Right-click on the project and then <key>Team+Pull</key> | | | ''pull'' | Right-click on the project and then <key>Team+Pull</key> | |
| |
| For more information, see the [[ https://wiki.eclipse.org/EGit/User_Guide | Egit User's Guide ]] | For more information, see the [[ https://wiki.eclipse.org/EGit/User_Guide | Egit User's Guide ]] |
| | |
| | |
| | ==== Troubleshooting ==== |
| | |
| | - If you get an error related to your HttpConnection when you attempt to clone a repository, it may be because of the HTTP client you are using. To change it, open the Git Preferences dialog and change the HTTP client (e.g., from "Apache HTTP" to "Java Built-in HTTP" |
| |
| |
| |