Git in Apache NetBeans :
The Apache NetBeans IDE provides support for the Git version control system. The IDE’s Git features let you perform versioning tasks directly from your projects and code within the IDE.
Git is a free and open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and easy to do. Git is used for version control of files, much like tools such as Mercurial, Subversion, CVS, and Perforce.
Create repository in github :
First of all create respository in github. You do'nt know how to create respository in github then see this below video and follow the step for create github repository.
Initializing a Git Repository :
Open apache netbeans IDE.
In the top menu bar click on Team > Git > Initialize repository.
Again click on Team > Commit. Enter your first commit like "Initializing my java project" something like this and click on commit button.
Again click on Team > remote > push
Open your github repository and copy your repository URL.
Open apache netbeans and paste that URL in repository URL field.
Enter your github username.
Enter your github password. If you get the error "invald username and password" then enter github access token here. If you do'nt know how to generate github access token then see below video and follow the step for generate github access token.
After fill the the three field 1.repository URL 2.username and 3.password then click on next button.
Select your local master branch then click on next button.
Select your remote origin/master branch then click on finishbutton.
Click on yes button in setup remote tracking? pop up window.
0 Comments
Enter Your Comment