DEV Community

sivakumar p
sivakumar p

Posted on

Git Workflow for Developers: From Initialization to Pushing to GitHub

πŸ“˜ Name: SIVAKUMAR P
πŸŽ“ Roll No: 24MCR102
🌐 GitHub Repo: 24MCR102 Repository

Initializing Git

Image description

git init
This command sets up a new Git repository in the project folder.

Image description

git add 24MCR102.txt
Adding files to staging prepares them for commit.

Image description

git commit -m "Added Personal Details"
Commit your changes with a message.

Image description

git status
Viewing current status of working directory and staging area.

Image description

git log
Tracking all commits with details.

Image description

git remote add origin https://github.com/sivakumarp13903/24MCR102.git
Connects your project to a remote GitHub repository.

Image description

git branch -M main
Updating branch name from master to main.

Image description

git push -u origin main
Your changes go live on GitHub.

Top comments (2)

Collapse
 
nisanth_gurusamy_620db52b profile image
Nisanth Gurusamy

Well Done Sivakumar,Keep on Rocking

Collapse
 
sachin_s24mcr084 profile image
Sachin S 24MCR084

super da