Git - What Is Origin in Git Push Origin Main

What is origin in git push origin main? The origin is a convention. It’s an alias, short for what we see from the output of git remote -v. You can name it whatever you want. You can think of it as where this code is “originated” from. git remote -v # output origin git@github.com:derrykid/workongit.git (fetch) origin git@github.com:derrykid/workongit.git (push) Set the remote URL as origin and upstream Whenever we pull the code from remote repository, it flows downstream....

November 12, 2022 · 1 min · Derry