Section-A
Installing Git on Local System, Create project file and Upload on GitHub Repository
Install Git
- Download Git
For Windows 64-bit System. Download 64-bit Git for Windows Setup
It will install Git GUI, Git CMD and Git Bash (Will use Git Bash)
- Create Git Hub Public Repository. Ex :- testing-git-eclipse
- Open Git Bash on your system
$mkdir test-git-eclipse — Create local git repository
$cd test-git-eclipse — Change directory
$git init — initialize local git repository
$nano index.html — Create project file, with some data.
Data for testing
$git add . – Stage content of current directory
$git commit -m “Added index.html” — Commit data
$git remote add origin https://github.com/AmolShende/testing-git-eclipse.git
- Add remote Git Repository
$git push origin master — will push code from local repository
to git hub repository
Section-B
Installing Eclipse on Local System , Create Sample Java Project and Push it on Git Hub Repository
- Download and Install Eclipse
It will Download file eclipse-inst-jre-win64.exe
Install the Eclipse. It will require Microsoft Visual C++ 2015-2022 Redistributable (x64)
Please download and install the same.
Eclipse Will get installed.
- Create Java Project in Eclipse
File – New – Java Project – Name: – testjavaproject
Java Project named testjavaproject gets created
- Create Public Repository on github.com.
- Create Access Token on GitHub
- Log in to GitHub.
- Verify your email if needed.
- Click your profile photo, then Settings.
- Navigate to Developer settings.
- Select Personal access tokens.
- Generate a new token.
- Name your token descriptively.
- Choose expiration and permissions.
- Generate the token.
- Copy and securely store it.
- Share the Project
Right click Project – Team – Share Project
Create – Finish
- Commit and Push the Project on GitHub
Right Click Project – Team – Commit
Press Commit
Commit and push the project to the repo
Commit and push every change to the repo
For Information & classes Call: 02048553009
Registration Link: Click Here!
Author:-
Amol Shende
AWS Trainer
IT Education Centre Placement & Training Institute
© Copyright 2024 | IT Education Centre.