https://github.com/iotchulindrarai/versioncontrolcommand
It is a basic git cersion command required to push code in github
https://github.com/iotchulindrarai/versioncontrolcommand
cicd git github version-control
Last synced: about 1 month ago
JSON representation
It is a basic git cersion command required to push code in github
- Host: GitHub
- URL: https://github.com/iotchulindrarai/versioncontrolcommand
- Owner: IotchulindraRai
- Created: 2024-01-08T19:04:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T12:13:58.000Z (over 1 year ago)
- Last Synced: 2025-02-10T20:13:40.251Z (over 1 year ago)
- Topics: cicd, git, github, version-control
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# version control command
It is a basic git version command required to push code in github
# Initialize Git repository (if not done previously)
git init
# Check the status of your repository
git status
# Add changes to the staging area
git add .
# Commit the changes with a commit message
git commit -m "Your commit message here"
# Add a remote repository (if not done previously)
# Note: This command is optional if you've already added the remote
git remote add origin https://github.com/IotchulindraRai/Javascript-interview-.git
# Verify the remote
git remote -v
# Push changes to the remote repository
git push -u origin main

# moreover Certainly! Here are 20 Git commands that are commonly used by software engineers:
# Initialize a new repository:
git init
# Clone a repository:
git clone
# Check the status of your repository:
git status
# Add changes to the staging area:
git add
# Add all changes to the staging area:
git add .
# Commit changes:
git commit -m "Your commit message here"
# View the commit history:
git log
# Create a new branch:
git branch
# Switch to a different branch:
git checkout
# Create and switch to a new branch:
git checkout -b
# Merge branches:
git merge
# Fetch changes from a remote repository:
git fetch
# Pull changes from a remote repository:
git pull
# Push changes to a remote repository:
git push origin
# Undo changes in working directory:
git restore
# Discard changes in the working directory:
git checkout --
# Create a tag for a specific commit:
git tag -a -m "Your tag message"
# List all tags:
git tag
# Show changes between commits:
git diff
# Remove untracked files:
git clean -fd
These commands cover a range of Git operations that are commonly used in software development workflows. Remember to adapt these commands based on your specific use case and workflow.