Tuesday, October 12, 2021
In the previous post we created a local git repository, in this post we are going to create a remote repository in github and link it to the local repository that we created.
Here are the steps to create a new repository in github:
1. Log into your github account and click on the "New" button next to the text "Repositories"
2. Give the repository a name, I am going to name it "NorthwindCafe"
You can set the repository to be public or private, if you don't have a paid account you can only create public repositories. But if you have a paid account it might be a good idea to work privately first before you share your work with the reset of the world.
3. Accept all the default settings and click "Create repository"
4. When you get to the next page you will have instructions on how to link your local repository to the github repository if you scrolled down.
Since we already have a local repository the above command is what we want.
git remote add origin https://github.com/techjunkiejh/NorthwindCafe.git obviously your URL will look different than mine because it would be your github's username and not mine.
5. Now open up the command line in your local repository and type in the command like the instruction says, if you run the command and then type git remote -v you will see that you can now fetch and push code to the repository
6. We are not done yet, now we have to push the code from our local repository with this command git push -u origin master which basically means push the code from master (local) to origin (remote). If you get prompted, type in your github credentials
7. Now if we check online in github we will see the contents of our local repository in github
Previous: git & github: Create a Local NorthwindCafe git Repository
Here are the steps to create a new repository in github:
1. Log into your github account and click on the "New" button next to the text "Repositories"
2. Give the repository a name, I am going to name it "NorthwindCafe"
You can set the repository to be public or private, if you don't have a paid account you can only create public repositories. But if you have a paid account it might be a good idea to work privately first before you share your work with the reset of the world.
3. Accept all the default settings and click "Create repository"
4. When you get to the next page you will have instructions on how to link your local repository to the github repository if you scrolled down.
Since we already have a local repository the above command is what we want.
git remote add origin https://github.com/techjunkiejh/NorthwindCafe.git obviously your URL will look different than mine because it would be your github's username and not mine.
5. Now open up the command line in your local repository and type in the command like the instruction says, if you run the command and then type git remote -v you will see that you can now fetch and push code to the repository
6. We are not done yet, now we have to push the code from our local repository with this command git push -u origin master which basically means push the code from master (local) to origin (remote). If you get prompted, type in your github credentials
7. Now if we check online in github we will see the contents of our local repository in github
Previous: git & github: Create a Local NorthwindCafe git Repository
Subscribe to:
Post Comments (Atom)
Search This Blog
Tags
Web Development
Linux
Javascript
DATA
CentOS
ASPNET
SQL Server
Cloud Computing
ASP.NET Core
ASP.NET MVC
SQL
Virtualization
AWS
Database
ADO.NET
AngularJS
C#
CSS
EC2
Iaas
System Administrator
Azure
Computer Programming
JQuery
Coding
ASP.NET MVC 5
Entity Framework Core
Web Design
Infrastructure
Networking
Visual Studio
Errors
T-SQL
Ubuntu
Stored Procedures
ACME Bank
Bootstrap
Computer Networking
Entity Framework
Load Balancer
MongoDB
NoSQL
Node.js
Oracle
VirtualBox
Container
Docker
Fedora
Java
Source Control
git
ExpressJS
MySQL
NuGet
Blogger
Blogging
Bower.js
Data Science
JSON
JavaEE
Web Api
DBMS
DevOps
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Linux Mint
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
Software Development
Subnets
Telerik
VPC
Windows Server 2016
angular-seed
font-awesome
log4net
servlets
tomcat
AWS CloudWatch
Active Directory
Angular
Blockchain
Collections
Compatibility
Cryptocurrency
DIgital Life
DNS
Downloads
Google Blogger
Google Chrome
Google Fonts
Hadoop
IAM
KnockoutJS
LINQ
Linux Performance
Logging
Mobile-First
Open Source
Prototype
R Programming
Responsive
Route 53
S3
SELinux
Software
Unix
View
Web Forms
WildFly
XML
cshtml
githu
What can we extrapolate of such decision? To truly understand the questions in matter, we need to focus on what we are storing. github commit service
ReplyDeletefor Trademark registration please visit here:
ReplyDeletehttps://meralegal.com/trademark-registration.php
Thanks for sharing this information.I love your artical Thanks you so much for your tips.
ReplyDelete