Pushing Code From Local Environment(Gitbash) to Github

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, …


This content originally appeared on DEV Community and was authored by olaniyi akinkunmi

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

Image description
_this is how our gitbah looks like _
Image description

Step 2 configure your environment
use the command git config --global user.name "name" press enter

Image description
configure your email
use the command git config --global user.email "email"

Image description

Step 3 work with the configure environment
you will create a directory
mkdir website

Image description

cd website

Image description
create a local repository with the command git init

Image description
create a file; touch index.html

Image description
**Step 4 **clone your repository

Image description
Click on code
Image description

Click on http and copy url
Image description

paste the code,the command is git remote add origin and the url

Image description
**Step **5 push to git hub
use this command git add . to push everything or git add index.html for index.html alone

Image description

take a snap shoot using this command with a nice message
git commit -m "nice message"

Image description

push it finally to git hub using this code
git push origin master

Image description

Image description

confirm your login
Image description

it has been push to git hub then open

Image description

Now you compare and pull request

Image description
The file has been push

Image description
Go to settings click on page

Image description

go to branch choose master then click on save

Image description

You can see we have a web page

Image description

THANK YOU FOR FOLLOWING THROUGH


This content originally appeared on DEV Community and was authored by olaniyi akinkunmi


Print Share Comment Cite Upload Translate Updates
APA

olaniyi akinkunmi | Sciencx (2024-08-26T23:16:19+00:00) Pushing Code From Local Environment(Gitbash) to Github. Retrieved from https://www.scien.cx/2024/08/26/pushing-code-from-local-environmentgitbash-to-github/

MLA
" » Pushing Code From Local Environment(Gitbash) to Github." olaniyi akinkunmi | Sciencx - Monday August 26, 2024, https://www.scien.cx/2024/08/26/pushing-code-from-local-environmentgitbash-to-github/
HARVARD
olaniyi akinkunmi | Sciencx Monday August 26, 2024 » Pushing Code From Local Environment(Gitbash) to Github., viewed ,<https://www.scien.cx/2024/08/26/pushing-code-from-local-environmentgitbash-to-github/>
VANCOUVER
olaniyi akinkunmi | Sciencx - » Pushing Code From Local Environment(Gitbash) to Github. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/26/pushing-code-from-local-environmentgitbash-to-github/
CHICAGO
" » Pushing Code From Local Environment(Gitbash) to Github." olaniyi akinkunmi | Sciencx - Accessed . https://www.scien.cx/2024/08/26/pushing-code-from-local-environmentgitbash-to-github/
IEEE
" » Pushing Code From Local Environment(Gitbash) to Github." olaniyi akinkunmi | Sciencx [Online]. Available: https://www.scien.cx/2024/08/26/pushing-code-from-local-environmentgitbash-to-github/. [Accessed: ]
rf:citation
» Pushing Code From Local Environment(Gitbash) to Github | olaniyi akinkunmi | Sciencx | https://www.scien.cx/2024/08/26/pushing-code-from-local-environmentgitbash-to-github/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.