We need to differentiate and know the function between gitbash and github
Git Bash
Git Bash is a command-line interface (CLI) application for Windows that provides a Bash emulation environment to run Git commands. It allows users to interact with Git, the version control system, using a Unix-like command-line experience12.
Here are some key features of Git Bash:
Bash Emulation: It behaves like the Bash shell found in Linux and Unix environments, making it familiar for users who are accustomed to those systems13.
Git Commands: You can perform various Git operations such as cloning repositories, committing changes, pushing and pulling updates, and more2.
Unix Utilities: Git Bash includes several Unix utilities like SSH, SCP, and CAT, which can be useful for various tasks
.Type: Command-line interface
Purpose: Provides a Unix-like terminal environment on Windows to use .Git commands
.Functionality: Allows you to interact with Git repositories locally
.Installation: Installed locally on your system
.Usage: Primarily used for executing Git commands and managing version control
GitHub
GitHub is a platform for version control and collaboration that allows developers to store, manage, and share their code. It uses Git, the distributed version control system, to track changes in code and facilitate collaboration among multiple developers.
Here are some key features of GitHub:
Repository Hosting: Store and manage your code in repositories.
.Version Control: Track changes and revert to previous versions if needed.
.Collaboration Tools: Work with others through pull requests, code reviews, and issues.
Continuous Integration/Continuous Deployment (CI/CD): Automate testing and deployment of your code.
.Project Management: Use tools like project boards and task lists to manage your work.
.Security Features: Identify and fix vulnerabilities in your code
.Type: Web-based platform
.Purpose: Hosts Git repositories and provides tools for collaboration, version control, and project management
.Functionality: Offers a graphical user interface (GUI) for managing repositories, issues, pull requests, and more
.Installation: Accessed via the web; no local installation required
.Usage: Used for hosting repositories, collaborating with others, and managing projects online
Walkthrough to push from your local environment(github)
1. Download Git Bash
2.configure Git bash
3.work with the configure evvironment
4.clone your github repo
5.push to github
to download gitbash
Step 1 download git
_this is how our gitbah looks like _
Step 2 configure your environment
use the command git config --global user.name "name" press enter
configure your email
use the command git config --global user.email "email"
Step 3 work with the configure environment
you will create a directory
mkdir website
cd website
create a local repository with the command git init
create a file; touch index.html
**Step 4 **clone your repository
paste the code,the command is git remote add origin and the url
**Step **5 push to git hub
use this command git add . to push everything or git add index.html for index.html alone
take a snap shoot using this command with a nice message
git commit -m "nice message"
push it finally to git hub using this code
git push origin master
it has been push to git hub then open
Now you compare and pull request
go to branch choose master then click on save
You can see we have a web page
THANK YOU FOR FOLLOWING THROUGH
Top comments (2)
Man, just switch to Linux, or at least use WSL on windows)))
very useful