Git Create New Remote Branch From Local Repository And Push to GitHub (first time from command line)

preview_player
Показать описание
(We're free online community, meet other makers!)

#git #github #webdevelopment

Hey guys, another git tutorial for:

git create new repository and push to github
git create remote repository

Table of Contents:
00:00 How to create new git repository and branch from scratch
00:35 Create new local git repo on your computer
01:30 git init
02:17 Staging new or changed files with git add .
02:36 Commit staged changes with git commit -m (how to enter git commit message on command line)
02:55 Creating a new repository from GitHub homepage
03:10 Creating a new local git branch with git branch command
03:27 git remote add origin URL (link local and remote repo)
03:56 git push changes for the first time with upstream command -u
04:42 Changing existing file to commit and push to remote again
04:59 git add . (dot)
05:04 git commit -m message
05:18 git push

Most popular videos on Semicolon:

How to run PHP script file on localhost in Chrome browser on PC in Windows 7 10 11

How to run HTML in VSCode (68K views)

How to run Python in VSCode (71K views)

How to center Image in HTML (142K views)

How to add background image in HTML (559K views)

How to install MinGW 64 bit 2022 Windows 10/11 Fix File Has Been Downloaded Incorrectly! Error

How to Run JavaScript (js) files in VSCode on Windows 7 10 11

VSCode Keyboard Shortcuts (visual studio code key bindings)

How to Run Python in VSCode

How to use FTP in VSCode to upload and download files

VSCode How To Open a Folder

Fix Error: listen EACCESS permission denied

How to use GIt in VSCode (tutorial for beginners)

How to remove all files from a directory on Linux

How to fix ModuleNotFoundError (no module named) error in Python

How to make background image fit screen in HTML CSS

How to fade in and out in Premiere Pro

VSCode Keyboard Shortcuts
Рекомендации по теме
Комментарии
Автор

If this is helping, please Like and Comment 🙂

This helps YT algorithm show tutorials to more people!

ghosttogether
Автор

on adding the remote I passed another branch name created locally, now on GitHub, the main branch is having nothing. Can't create a pull request as GitHub is showing nothing to merge on the main branch. Can you please show how to get everything on the main branch . Thank you

sanjanaporwal
Автор

If it is our very first commit, after the 'git remote add origin steps, do we need to include a 'git pull' ? It's giving me an error when I run 'git push origin main' after the 'git remote add origin....'. Hope you can clarify on this

Jason-ruxt