How to push fresh code to GitHub?

git init
git add .
git commit -m "initial commit"
git remote add origin https://github.com/harshalone/strapi-v4.git
git push -u origin master
git checkout master   
git branch main master -f
git checkout main
git push origin main -f
git checkout master  
git branch main master -f
git checkout main
git push origin main -f
git branch [Branch1] [Branch2] -f

--

--

--

Start, Grow and Manage Your Communities https://www.bylde.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

7 Microservices Design Patterns and Principles

design principles

DOCKER CRASH COURSE GUIDE.

Screen Capture on your browser with ffmpeg.wasm

Cross Validation in Python

Get your projects done with chops!

Collaboration and Notqmail with Amitai Schleier

Implementing Your Own OS — Interrupts and Input

Paytm payment gateway integration in flutter using paytmkaro plugin.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bylde

Bylde

Start, Grow and Manage Your Communities https://www.bylde.com

More from Medium

Summarizing source code with Abstract Syntax Trees

Using AWS IoT SQL to Write To Timestream

Advanced image optimisation techniques — A Workable Careers Pages use case

9 Reasons To Go With Java Web Development Services!