- Java EE 8 Development with Eclipse
- Ram Kulkarni
- 210字
- 2021-06-18 19:00:04
Committing a project to a remote repository
So far, we have been working in the local Git repository. But you may want to push your project to a remote repository if you want to share your code and/or make sure that you do not lose your local changes. So in this section, we will learn how to push a local project to a remote Git repository. If you do not have access to a Git repository, you could create one at http://www.github.com.
- Create a new repository in the remote Git server, named GitPluginTest.
- In the Git Repositories view, right-click on the Remotes node and select the Create Remote... option:

Figure 3.28: Adding a remote Git repository
- By convention, name of the remote repository is origin. Click OK. In the next page, set up the configuration for push. Click on the Change button next to the URI textbox:

Figure 3.29: Setting up a remote Git URI
- Enter the URI of the remote Git repository. The wizard extracts host, repository path, and protocol from the URI. Enter your user ID and password and click Finish:

Figure 3.30: Configuring a Git push
- Click Save and Push. This sends files in the local master branch to the remote Git repository.
推薦閱讀
- C++案例趣學(xué)
- Python金融數(shù)據(jù)分析
- Mastering Julia
- OpenShift在企業(yè)中的實(shí)踐:PaaS DevOps微服務(wù)(第2版)
- Responsive Web Design by Example
- Python Web數(shù)據(jù)分析可視化:基于Django框架的開(kāi)發(fā)實(shí)戰(zhàn)
- HTML5與CSS3基礎(chǔ)教程(第8版)
- Yii Project Blueprints
- PHP+MySQL+Dreamweaver動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)從入門(mén)到精通(第3版)
- Procedural Content Generation for C++ Game Development
- Beginning C++ Game Programming
- JBoss AS 7 Development
- Python面向?qū)ο缶幊蹋ǖ?版)
- Java Web應(yīng)用開(kāi)發(fā)
- Mobile Test Automation with Appium